Temporarily force our LLVMContext to the global context

From llvm r75846:
"To simplify the upcoming context-on-type change, switch all command
line tools to using the default global context for now."
This commit is contained in:
Benjamin Kramer
2009-07-20 17:55:05 +02:00
parent d7049de966
commit 69171c07cd

View File

@@ -402,7 +402,7 @@ int main(int argc, char** argv)
if (global.errors)
fatal();
llvm::LLVMContext context;
llvm::LLVMContext& context = llvm::getGlobalContext();
llvm::Module mod("dummy", context);
// override triple if needed