summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCMachObjectTargetWriter.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-12-17 05:50:29 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-12-17 05:50:29 +0000
commit2ee6c9b8c98cf224e15a0e75128ad1f4e331d5c5 (patch)
tree2ad5609b1ebf96f85e9dfbc5249e52f67d6d88f2 /llvm/lib/MC/MCMachObjectTargetWriter.cpp
parent4da4e2573b2399f5225c60a7bf8729dc756c9977 (diff)
downloadbcm5719-llvm-2ee6c9b8c98cf224e15a0e75128ad1f4e331d5c5.tar.gz
bcm5719-llvm-2ee6c9b8c98cf224e15a0e75128ad1f4e331d5c5.zip
MC/Mach-O: On second thought, use a custom hook for enabling aggressive
IsSymbolRefDifferenceFullyResolved, it turns out this does change behavior on enough cases for x86-32 that I would rather wait a bit on it. - In practice, we will want to change this eventually because it only means we generate less relocations (it also eliminates the need for the horrible '.set' hack that Darwin requires in some places). llvm-svn: 122042
Diffstat (limited to 'llvm/lib/MC/MCMachObjectTargetWriter.cpp')
-rw-r--r--llvm/lib/MC/MCMachObjectTargetWriter.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCMachObjectTargetWriter.cpp b/llvm/lib/MC/MCMachObjectTargetWriter.cpp
index 4dfc0a815f3..146cebf01a3 100644
--- a/llvm/lib/MC/MCMachObjectTargetWriter.cpp
+++ b/llvm/lib/MC/MCMachObjectTargetWriter.cpp
@@ -12,8 +12,10 @@
using namespace llvm;
MCMachObjectTargetWriter::MCMachObjectTargetWriter(
- bool Is64Bit_, uint32_t CPUType_, uint32_t CPUSubtype_)
- : Is64Bit(Is64Bit_), CPUType(CPUType_), CPUSubtype(CPUSubtype_) {
+ bool Is64Bit_, uint32_t CPUType_, uint32_t CPUSubtype_,
+ bool UseAggressiveSymbolFolding_)
+ : Is64Bit(Is64Bit_), CPUType(CPUType_), CPUSubtype(CPUSubtype_),
+ UseAggressiveSymbolFolding(UseAggressiveSymbolFolding_) {
}
MCMachObjectTargetWriter::~MCMachObjectTargetWriter() {
OpenPOWER on IntegriCloud