[llvm-commits] CVS: llvm/utils/TableGen/CodeGenWrappers.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Fri Oct 10 16:56:01 PDT 2003


Changes in directory llvm/utils/TableGen:

CodeGenWrappers.cpp updated: 1.3 -> 1.4

---
Log message:

This seems to work around some unobvious bug in gcc on sparc which was
causing the build of lib/Target/X86 to fail.


---
Diffs of the changes:  (+1 -1)

Index: llvm/utils/TableGen/CodeGenWrappers.cpp
diff -u llvm/utils/TableGen/CodeGenWrappers.cpp:1.3 llvm/utils/TableGen/CodeGenWrappers.cpp:1.4
--- llvm/utils/TableGen/CodeGenWrappers.cpp:1.3	Sun Aug 10 14:50:32 2003
+++ llvm/utils/TableGen/CodeGenWrappers.cpp	Fri Oct 10 16:55:29 2003
@@ -61,7 +61,7 @@
 
 /// getTarget - Return the current instance of the Target class.
 ///
-CodeGenTarget::CodeGenTarget() {
+CodeGenTarget::CodeGenTarget() : PointerType(MVT::Other) {
   std::vector<Record*> Targets = Records.getAllDerivedDefinitions("Target");
   if (Targets.size() != 1)
     throw std::string("ERROR: Multiple subclasses of Target defined!");





More information about the llvm-commits mailing list