aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-10 01:17:49 +0000
committerChris Lattner <sabre@nondot.org>2010-03-10 01:17:49 +0000
commitd85fc6e0b1750907bacf1cd7309e85e777b23a4d (patch)
tree6ad6b48e087df9c6165532c91a7f73c17b37f735 /lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
parent188a87da79f51b00522b9487ee352a50a01e5ea4 (diff)
inline away a form of IsPCRelative, eliminating the
dead IsPCRel argument. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98117 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfPrinter.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfPrinter.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp b/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
index 878a5e7fa3..80d2907250 100644
--- a/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
@@ -186,27 +186,6 @@ void DwarfPrinter::EmitULEB128(unsigned Value, const char *Desc,
}
-/// EmitReference - Emit a reference to a label.
-///
-void DwarfPrinter::EmitReference(const MCSymbol *Sym, bool IsPCRelative,
- bool Force32Bit) const {
- unsigned Size = Force32Bit ? 4 : TD->getPointerSize();
-
- if (!IsPCRelative) {
- Asm->OutStreamer.EmitSymbolValue(Sym, Size, 0/*AddrSpace*/);
- return;
- }
-
- // FIXME: Need an MCExpr for ".".
- // FIXME: MCize.
- if (Force32Bit || TD->getPointerSize() == sizeof(int32_t))
- O << MAI->getData32bitsDirective();
- else
- O << MAI->getData64bitsDirective();
- O << *Sym;
- if (IsPCRelative) O << "-" << MAI->getPCSymbol();
-}
-
void DwarfPrinter::EmitReference(const MCSymbol *Sym, unsigned Encoding) const {
const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering();