summaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DIE.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/DIE.cpp
parent188a87da79f51b00522b9487ee352a50a01e5ea4 (diff)
downloadllvm-d85fc6e0b1750907bacf1cd7309e85e777b23a4d.tar.gz
llvm-d85fc6e0b1750907bacf1cd7309e85e777b23a4d.tar.bz2
llvm-d85fc6e0b1750907bacf1cd7309e85e777b23a4d.tar.xz
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/DIE.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DIE.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DIE.cpp b/lib/CodeGen/AsmPrinter/DIE.cpp
index b9bb4af2b8..e97754e5d2 100644
--- a/lib/CodeGen/AsmPrinter/DIE.cpp
+++ b/lib/CodeGen/AsmPrinter/DIE.cpp
@@ -259,7 +259,8 @@ void DIEString::print(raw_ostream &O) {
///
void DIELabel::EmitValue(DwarfPrinter *D, unsigned Form) const {
bool IsSmall = Form == dwarf::DW_FORM_data4;
- D->EmitReference(Label, false, IsSmall);
+ unsigned Size = IsSmall ? 4 : D->getTargetData()->getPointerSize();
+ D->getAsm()->OutStreamer.EmitSymbolValue(Label, Size, 0/*AddrSpace*/);
}
/// SizeOf - Determine size of label value in bytes.