[llvm-commits] CVS: llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Mon Nov 10 01:13:01 PST 2003
Changes in directory llvm/lib/CodeGen/RegAlloc:
PhyRegAlloc.cpp updated: 1.128 -> 1.129
---
Log message:
Fix problems linking against the reoptimizer; _llvm_regAllocState must have
externally-visible linkage, and SaveStateToModule must default to true for llc.
I don't remember why I made it const; perhaps it should be deconstified.
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
diff -u llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.128 llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.129
--- llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.128 Sun Nov 9 18:05:25 2003
+++ llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp Mon Nov 10 01:12:01 2003
@@ -53,7 +53,7 @@
/// allocator's state after it has done its job. This is a hack.
///
PhyRegAlloc::SavedStateMapTy ExportedFnAllocState;
-const bool SaveStateToModule = false;
+const bool SaveStateToModule = true;
static cl::opt<RegAllocDebugLevel_t, true>
DRA_opt("dregalloc", cl::Hidden, cl::location(DEBUG_RA),
@@ -1286,7 +1286,7 @@
std::vector<Constant *> CV2;
CV2.push_back (ConstantUInt::get (Type::UIntTy, Size));
CV2.push_back (ConstantArray::get (AT2, allstate));
- new GlobalVariable (ST2, true, GlobalValue::InternalLinkage,
+ new GlobalVariable (ST2, true, GlobalValue::ExternalLinkage,
ConstantStruct::get (ST2, CV2), "_llvm_regAllocState",
&M);
return false; // No error.
More information about the llvm-commits
mailing list