summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-06-22 13:32:49 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-06-22 13:32:49 +0000
commitea5916619053527a72d9cc5b11db666f8892e73d (patch)
tree3792ff9c2ad2c3f0ea10f85c7e93c922ddd97663 /llvm/lib
parentd7bdaf5795b3c3d5d08381cb078c80d39ed8da74 (diff)
downloadbcm5719-llvm-ea5916619053527a72d9cc5b11db666f8892e73d.tar.gz
bcm5719-llvm-ea5916619053527a72d9cc5b11db666f8892e73d.zip
Remove another duplicated variable. We only need one to tell us if the linker
knows dwarf or not. llvm-svn: 158993
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
-rw-r--r--llvm/lib/MC/MCAsmInfo.cpp1
-rw-r--r--llvm/lib/MC/MCAsmInfoDarwin.cpp1
3 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 2d6dc804635..d8647616ac1 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -613,7 +613,7 @@ bool AsmPrinter::needsSEHMoves() {
}
bool AsmPrinter::needsRelocationsForDwarfStringPool() const {
- return MAI->doesDwarfUseRelocationsForStringPool();
+ return MAI->doesDwarfUseRelocationsAcrossSections();
}
void AsmPrinter::emitPrologLabel(const MachineInstr &MI) {
diff --git a/llvm/lib/MC/MCAsmInfo.cpp b/llvm/lib/MC/MCAsmInfo.cpp
index 6e659506b9d..8da2e0e5839 100644
--- a/llvm/lib/MC/MCAsmInfo.cpp
+++ b/llvm/lib/MC/MCAsmInfo.cpp
@@ -86,7 +86,6 @@ MCAsmInfo::MCAsmInfo() {
DwarfUsesInlineInfoSection = false;
DwarfSectionOffsetDirective = 0;
DwarfUsesRelocationsAcrossSections = true;
- DwarfUsesRelocationsForStringPool = true;
DwarfRegNumForCFI = false;
HasMicrosoftFastStdCallMangling = false;
}
diff --git a/llvm/lib/MC/MCAsmInfoDarwin.cpp b/llvm/lib/MC/MCAsmInfoDarwin.cpp
index 4c4f5edc83e..8e0ac23efce 100644
--- a/llvm/lib/MC/MCAsmInfoDarwin.cpp
+++ b/llvm/lib/MC/MCAsmInfoDarwin.cpp
@@ -60,5 +60,4 @@ MCAsmInfoDarwin::MCAsmInfoDarwin() {
HasSymbolResolver = true;
DwarfUsesRelocationsAcrossSections = false;
- DwarfUsesRelocationsForStringPool = false;
}
OpenPOWER on IntegriCloud