aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter/DwarfException.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-10 00:09:21 +0000
committerChris Lattner <sabre@nondot.org>2010-03-10 00:09:21 +0000
commite77cd0fbe65ca3511105303a483d8782d96a5629 (patch)
treeb51e521549282ff345e790164b5ac66e0c0f06f2 /lib/CodeGen/AsmPrinter/DwarfException.cpp
parent43cfc4882a0e8e15aaef6224dd771e914f15a92d (diff)
downloadexternal_llvm-e77cd0fbe65ca3511105303a483d8782d96a5629.zip
external_llvm-e77cd0fbe65ca3511105303a483d8782d96a5629.tar.gz
external_llvm-e77cd0fbe65ca3511105303a483d8782d96a5629.tar.bz2
mcize uses of PrintRelDirective and eliminate it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98107 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfException.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfException.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp
index 99e12e2..4f44534 100644
--- a/lib/CodeGen/AsmPrinter/DwarfException.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfException.cpp
@@ -886,13 +886,11 @@ void DwarfException::EmitExceptionTable() {
I = TypeInfos.rbegin(), E = TypeInfos.rend(); I != E; ++I) {
const GlobalVariable *GV = *I;
- if (GV) {
- Asm->OutStreamer.AddComment("TypeInfo");
+ Asm->OutStreamer.AddComment("TypeInfo");
+ if (GV)
EmitReference(GV, TTypeEncoding);
- } else {
- PrintRelDirective(TTypeEncoding);
- O << "0x0\n";
- }
+ else
+ Asm->OutStreamer.EmitIntValue(0, SizeOfEncodedValue(TTypeEncoding), 0);
}
// Emit the Exception Specifications.