summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86ELFWriterInfo.cpp
diff options
context:
space:
mode:
authorTorok Edwin <edwintorok@gmail.com>2009-07-14 16:55:14 +0000
committerTorok Edwin <edwintorok@gmail.com>2009-07-14 16:55:14 +0000
commitfbcc663cbf9e42e833883b89c0b976c92095562d (patch)
treeefa728e2a1e6f6b1bb0ec2a17b60476530e40f61 /llvm/lib/Target/X86/X86ELFWriterInfo.cpp
parent88719a1dd6e7e810f32c077cf694b8c79a4bd009 (diff)
downloadbcm5719-llvm-fbcc663cbf9e42e833883b89c0b976c92095562d.tar.gz
bcm5719-llvm-fbcc663cbf9e42e833883b89c0b976c92095562d.zip
llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable.
This adds location info for all llvm_unreachable calls (which is a macro now) in !NDEBUG builds. In NDEBUG builds location info and the message is off (it only prints "UREACHABLE executed"). llvm-svn: 75640
Diffstat (limited to 'llvm/lib/Target/X86/X86ELFWriterInfo.cpp')
-rw-r--r--llvm/lib/Target/X86/X86ELFWriterInfo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/X86/X86ELFWriterInfo.cpp b/llvm/lib/Target/X86/X86ELFWriterInfo.cpp
index 9be7021a49e..a26fe8cd9b3 100644
--- a/llvm/lib/Target/X86/X86ELFWriterInfo.cpp
+++ b/llvm/lib/Target/X86/X86ELFWriterInfo.cpp
@@ -43,7 +43,7 @@ unsigned X86ELFWriterInfo::getRelocationType(unsigned MachineRelTy) const {
return R_X86_64_64;
case X86::reloc_picrel_word:
default:
- LLVM_UNREACHABLE("unknown relocation type");
+ llvm_unreachable("unknown relocation type");
}
} else {
switch(MachineRelTy) {
@@ -54,7 +54,7 @@ unsigned X86ELFWriterInfo::getRelocationType(unsigned MachineRelTy) const {
case X86::reloc_absolute_dword:
case X86::reloc_picrel_word:
default:
- LLVM_UNREACHABLE("unknown relocation type");
+ llvm_unreachable("unknown relocation type");
}
}
return 0;
@@ -66,7 +66,7 @@ long int X86ELFWriterInfo::getAddendForRelTy(unsigned RelTy) const {
case R_X86_64_PC32: return -4;
break;
default:
- LLVM_UNREACHABLE("unknown x86 relocation type");
+ llvm_unreachable("unknown x86 relocation type");
}
}
return 0;
OpenPOWER on IntegriCloud