prepare-builtins: Remove call to getGlobalContext()
authorTom Stellard <thomas.stellard@amd.com>
Fri, 15 Apr 2016 14:18:58 +0000 (14:18 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 15 Apr 2016 14:18:58 +0000 (14:18 +0000)
This function has been removed from LLVM.

Patch By: Laurent Carlier

llvm-svn: 266430

libclc/utils/prepare-builtins.cpp

index a7b0db5..3122f48 100644 (file)
@@ -24,7 +24,7 @@ OutputFilename("o", cl::desc("Output filename"),
                cl::value_desc("filename"));
 
 int main(int argc, char **argv) {
-  LLVMContext &Context = getGlobalContext();
+  LLVMContext Context;
   llvm_shutdown_obj Y;  // Call llvm_shutdown() on exit.
 
   cl::ParseCommandLineOptions(argc, argv, "libclc builtin preparation tool\n");