aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DIE.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-04 19:58:12 +0000
committerChris Lattner <sabre@nondot.org>2010-04-04 19:58:12 +0000
commita64371828e27dcc30d38e7246dda0f35c1dfde40 (patch)
tree8e3be4b06f48b94ab5ea9382f0a5377dce36ea30 /lib/CodeGen/AsmPrinter/DIE.cpp
parentaf8df264952698cfde59d99c96d4a0da9e4f5afa (diff)
inline EmitDifference away.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100347 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DIE.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DIE.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DIE.cpp b/lib/CodeGen/AsmPrinter/DIE.cpp
index 3a2be19d2c..64d3789fb9 100644
--- a/lib/CodeGen/AsmPrinter/DIE.cpp
+++ b/lib/CodeGen/AsmPrinter/DIE.cpp
@@ -285,8 +285,8 @@ void DIELabel::print(raw_ostream &O) {
/// EmitValue - Emit delta value.
///
void DIEDelta::EmitValue(DwarfPrinter *D, unsigned Form) const {
- bool IsSmall = Form == dwarf::DW_FORM_data4;
- D->EmitDifference(LabelHi, LabelLo, IsSmall);
+ D->getAsm()->EmitLabelDifference(LabelHi, LabelLo,
+ SizeOf(D->getTargetData(), Form));
}
/// SizeOf - Determine size of delta value in bytes.