[vmkit-commits] [vmkit] r63099 - /vmkit/trunk/tools/vmkit/Launcher.cpp
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Tue Jan 27 00:37:27 PST 2009
Author: geoffray
Date: Tue Jan 27 02:37:27 2009
New Revision: 63099
URL: http://llvm.org/viewvc/llvm-project?rev=63099&view=rev
Log:
Add the target data when command line specifying the LLVM passes.
Modified:
vmkit/trunk/tools/vmkit/Launcher.cpp
Modified: vmkit/trunk/tools/vmkit/Launcher.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/tools/vmkit/Launcher.cpp?rev=63099&r1=63098&r2=63099&view=diff
==============================================================================
--- vmkit/trunk/tools/vmkit/Launcher.cpp (original)
+++ vmkit/trunk/tools/vmkit/Launcher.cpp Tue Jan 27 02:37:27 2009
@@ -14,6 +14,7 @@
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/PassNameParser.h"
+#include "llvm/Target/TargetData.h"
#include "MvmGC.h"
@@ -69,6 +70,7 @@
void addCommandLinePass(mvm::CompilationUnit* CU, char** argv) {
FunctionPassManager* Passes = CU->TheModule->globalFunctionPasses;
+ Passes->add(new TargetData(*CU->TheModule->TheTargetData));
// Create a new optimization pass for each one specified on the command line
for (unsigned i = 0; i < PassList.size(); ++i) {
// Check to see if -std-compile-opts was specified before this option. If
More information about the vmkit-commits
mailing list