[libclc] r266430 - prepare-builtins: Remove call to getGlobalContext()
Tom Stellard via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 15 07:18:59 PDT 2016
Author: tstellar
Date: Fri Apr 15 09:18:58 2016
New Revision: 266430
URL: http://llvm.org/viewvc/llvm-project?rev=266430&view=rev
Log:
prepare-builtins: Remove call to getGlobalContext()
This function has been removed from LLVM.
Patch By: Laurent Carlier
Modified:
libclc/trunk/utils/prepare-builtins.cpp
Modified: libclc/trunk/utils/prepare-builtins.cpp
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/utils/prepare-builtins.cpp?rev=266430&r1=266429&r2=266430&view=diff
==============================================================================
--- libclc/trunk/utils/prepare-builtins.cpp (original)
+++ libclc/trunk/utils/prepare-builtins.cpp Fri Apr 15 09:18:58 2016
@@ -24,7 +24,7 @@ OutputFilename("o", cl::desc("Output fil
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");
More information about the cfe-commits
mailing list