[llvm-commits] [gcc-plugin] r76307 - /gcc-plugin/trunk/llvm-plugin.cpp

Duncan Sands baldrick at free.fr
Sat Jul 18 04:25:11 PDT 2009


Author: baldrick
Date: Sat Jul 18 06:25:11 2009
New Revision: 76307

URL: http://llvm.org/viewvc/llvm-project?rev=76307&view=rev
Log:
Define a few globals now that they don't get in
the way of having things compile.

Modified:
    gcc-plugin/trunk/llvm-plugin.cpp

Modified: gcc-plugin/trunk/llvm-plugin.cpp
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/llvm-plugin.cpp?rev=76307&r1=76306&r2=76307&view=diff

==============================================================================
--- gcc-plugin/trunk/llvm-plugin.cpp (original)
+++ gcc-plugin/trunk/llvm-plugin.cpp Sat Jul 18 06:25:11 2009
@@ -49,7 +49,7 @@
 #include "tree-pass.h"
 
 // Plugin headers
-//#include "llvm-internal.h"
+#include "llvm-internal.h"
 
 using namespace llvm;
 
@@ -59,10 +59,13 @@
 
 
 // Global state for emitting LLVM IR.
+DebugInfo *TheDebugInfo = 0;
 TargetFolder *TheFolder = 0;
 Module *TheModule = 0;
 TargetMachine *TheTarget = 0;
-//FIXMETypeConverter *TheTypeConverter = 0;
+TypeConverter *TheTypeConverter = 0;
+
+SmallSetVector<Constant*, 32> AttributeUsedGlobals;
 
 /// LazilyConfigureLLVM - Set LLVM configuration options, if not already set.
 /// already created.
@@ -176,7 +179,7 @@
 //TODO#endif
   TheModule->setTargetTriple(TargetTriple);
 
-//FIXME  TheTypeConverter = new TypeConverter();
+  TheTypeConverter = new TypeConverter();
 
   // Create the TargetMachine we will be generating code with.
   // FIXME: Figure out how to select the target and pass down subtarget info.





More information about the llvm-commits mailing list