diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-10 01:17:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-10 01:17:49 +0000 |
commit | b245dfb408b746cd54e98e02d32d103acc66d79c (patch) | |
tree | 908a86f30a1d43e01583543163a9963297950184 /llvm/lib/CodeGen/AsmPrinter/DIE.cpp | |
parent | 7e998b73630ee44e688c26a2dcaee67922915087 (diff) | |
download | bcm5719-llvm-b245dfb408b746cd54e98e02d32d103acc66d79c.tar.gz bcm5719-llvm-b245dfb408b746cd54e98e02d32d103acc66d79c.zip |
inline away a form of IsPCRelative, eliminating the
dead IsPCRel argument.
llvm-svn: 98117
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DIE.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DIE.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp index b9bb4af2b81..e97754e5d26 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp +++ b/llvm/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. |