[llvm-commits] CVS: reopt/tools/ttftest/ttftest.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Thu Jul 15 14:55:16 PDT 2004
Changes in directory reopt/tools/ttftest:
ttftest.cpp updated: 1.7 -> 1.8
---
Log message:
Rename TraceFunction::get --> BuildTraceFunction. Now it takes a ModuleProvider.
---
Diffs of the changes: (+3 -1)
Index: reopt/tools/ttftest/ttftest.cpp
diff -u reopt/tools/ttftest/ttftest.cpp:1.7 reopt/tools/ttftest/ttftest.cpp:1.8
--- reopt/tools/ttftest/ttftest.cpp:1.7 Wed Jul 7 14:11:26 2004
+++ reopt/tools/ttftest/ttftest.cpp Thu Jul 15 16:55:06 2004
@@ -20,6 +20,7 @@
#include "llvm/Assembly/Writer.h"
#include "llvm/Bytecode/Reader.h"
#include "llvm/Module.h"
+#include "llvm/ModuleProvider.h"
#include "reopt/TraceIO.h"
#include "reopt/TraceToFunction.h"
#include <iostream>
@@ -92,7 +93,8 @@
}
// Run TraceToFunction on the Trace.
- TraceFunction *TF = TraceFunction::get (*T);
+ ModuleProvider *MP = new ExistingModuleProvider (M);
+ TraceFunction *TF = BuildTraceFunction (*T, MP);
if (!Quiet) { std::cerr << *TF->TraceFn << "\n\n"; }
// Run the LLVM Verifier on the resulting TraceFunction.
More information about the llvm-commits
mailing list