aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-09 23:54:52 +0000
committerChris Lattner <sabre@nondot.org>2010-03-09 23:54:52 +0000
commit4aeaca40539ffd6562df22765bba3cf98e2fff9d (patch)
tree61e900e45e8c8ba761920bc2d745ab6989772bd9
parent233f52be36a6a2ec053b1580fdf89625de256513 (diff)
downloadexternal_llvm-4aeaca40539ffd6562df22765bba3cf98e2fff9d.zip
external_llvm-4aeaca40539ffd6562df22765bba3cf98e2fff9d.tar.gz
external_llvm-4aeaca40539ffd6562df22765bba3cf98e2fff9d.tar.bz2
inline the bool form of PrintRelDirective away, leaving just the unsigned form.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98106 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfPrinter.cpp12
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfPrinter.h1
2 files changed, 4 insertions, 9 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp b/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
index b8f9ba1..86a1ead 100644
--- a/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
@@ -77,13 +77,6 @@ unsigned DwarfPrinter::SizeOfEncodedValue(unsigned Encoding) const {
return 0;
}
-void DwarfPrinter::PrintRelDirective(bool Force32Bit) const {
- if (Force32Bit || TD->getPointerSize() == sizeof(int32_t))
- O << MAI->getData32bitsDirective();
- else
- O << MAI->getData64bitsDirective();
-}
-
void DwarfPrinter::PrintRelDirective(unsigned Encoding) const {
unsigned Size = SizeOfEncodedValue(Encoding);
assert((Size == 4 || Size == 8) && "Do not support other types or rels!");
@@ -211,7 +204,10 @@ void DwarfPrinter::EmitReference(const MCSymbol *Sym, bool IsPCRelative,
}
// FIXME: Need an MCExpr for ".".
- PrintRelDirective(Force32Bit);
+ if (Force32Bit || TD->getPointerSize() == sizeof(int32_t))
+ O << MAI->getData32bitsDirective();
+ else
+ O << MAI->getData64bitsDirective();
O << *Sym;
if (IsPCRelative) O << "-" << MAI->getPCSymbol();
}
diff --git a/lib/CodeGen/AsmPrinter/DwarfPrinter.h b/lib/CodeGen/AsmPrinter/DwarfPrinter.h
index e45a7ac..0fe45e4 100644
--- a/lib/CodeGen/AsmPrinter/DwarfPrinter.h
+++ b/lib/CodeGen/AsmPrinter/DwarfPrinter.h
@@ -89,7 +89,6 @@ public:
unsigned SizeOfEncodedValue(unsigned Encoding) const;
void PrintRelDirective(unsigned Encoding) const;
- void PrintRelDirective(bool Force32Bit = false) const;
/// EmitEncodingByte - Emit a .byte 42 directive that corresponds to an
/// encoding. If verbose assembly output is enabled, we output comments