diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-13 04:09:18 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-13 04:09:18 +0000 |
commit | 53a52215b5480bd52f1aee5189c7b08a7098fc51 (patch) | |
tree | 20cde4af23fe30f2b0cf520520affbb0c66a53ab /llvm/lib/CodeGen/MachOWriter.cpp | |
parent | 5302389442e928e7d8e9d07be1a4a463085d754a (diff) | |
download | bcm5719-llvm-53a52215b5480bd52f1aee5189c7b08a7098fc51.tar.gz bcm5719-llvm-53a52215b5480bd52f1aee5189c7b08a7098fc51.zip |
Begin the painful process of tearing apart the rat'ss nest that is Constants.cpp and ConstantFold.cpp.
This involves temporarily hard wiring some parts to use the global context. This isn't ideal, but it's
the only way I could figure out to make this process vaguely incremental.
llvm-svn: 75445
Diffstat (limited to 'llvm/lib/CodeGen/MachOWriter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachOWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachOWriter.cpp b/llvm/lib/CodeGen/MachOWriter.cpp index 7542d9ed102..35f71075cc7 100644 --- a/llvm/lib/CodeGen/MachOWriter.cpp +++ b/llvm/lib/CodeGen/MachOWriter.cpp @@ -123,7 +123,7 @@ bool MachOWriter::doFinalization(Module &M) { // getConstSection - Get constant section for Constant 'C' MachOSection *MachOWriter::getConstSection(Constant *C) { const ConstantArray *CVA = dyn_cast<ConstantArray>(C); - if (CVA && CVA->isCString()) + if (CVA && CVA->isCString(*Context)) return getSection("__TEXT", "__cstring", MachOSection::S_CSTRING_LITERALS); |