[vmkit-commits] [vmkit] r76575 - /vmkit/trunk/tools/vmjc/vmjc.cpp
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Tue Jul 21 06:51:07 PDT 2009
Author: geoffray
Date: Tue Jul 21 08:50:57 2009
New Revision: 76575
URL: http://llvm.org/viewvc/llvm-project?rev=76575&view=rev
Log:
Disable cross-compiling until I figure out how to use this TargetSelect
thing.
Modified:
vmkit/trunk/tools/vmjc/vmjc.cpp
Modified: vmkit/trunk/tools/vmjc/vmjc.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/tools/vmjc/vmjc.cpp?rev=76575&r1=76574&r2=76575&view=diff
==============================================================================
--- vmkit/trunk/tools/vmjc/vmjc.cpp (original)
+++ vmkit/trunk/tools/vmjc/vmjc.cpp Tue Jul 21 08:50:57 2009
@@ -97,9 +97,6 @@
static cl::opt<std::string>
TargetTriple("mtriple", cl::desc("Override target triple for module"));
-static cl::opt<std::string>
-MArch("march", cl::desc("Architecture to generate code for (see --version)"));
-
static cl::opt<bool>
DisableExceptions("disable-exceptions",
cl::desc("Disable Java exceptions"));
@@ -185,14 +182,16 @@
return 0;
}
- if (WithClinit.empty()) {
+ // Disable cross-compiling for now.
+ if (false) {
Module* TheModule = new Module("bootstrap module",
*(new llvm::LLVMContext()));
if (!TargetTriple.empty())
TheModule->setTargetTriple(TargetTriple);
else
TheModule->setTargetTriple(mvm::MvmModule::getHostTriple());
-
+
+#if 0
// explicitly specified an architecture to compile for.
const Target *TheTarget = 0;
if (!MArch.empty()) {
@@ -233,6 +232,7 @@
mvm::MvmModule::initialise(CodeGenOpt::Default, TheModule, &Target);
+#endif
} else {
mvm::MvmModule::initialise();
}
More information about the vmkit-commits
mailing list