aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/ELFCodeEmitter.h
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2011-09-10 01:07:54 +0000
committerRichard Trieu <rtrieu@google.com>2011-09-10 01:07:54 +0000
commit2e3734e2d948af7c61c1957742811cdfca0e2516 (patch)
tree579bf1827d400e3d1b77653a8228a58c23a53b37 /lib/CodeGen/ELFCodeEmitter.h
parent1ad60c2adc9ed765a968747d0c548cda53bfd384 (diff)
downloadexternal_llvm-2e3734e2d948af7c61c1957742811cdfca0e2516.tar.gz
external_llvm-2e3734e2d948af7c61c1957742811cdfca0e2516.tar.bz2
external_llvm-2e3734e2d948af7c61c1957742811cdfca0e2516.zip
Fix asserts in CodeGen from:
assert("error"); to: assert(0 && "error"); git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139449 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ELFCodeEmitter.h')
-rw-r--r--lib/CodeGen/ELFCodeEmitter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/ELFCodeEmitter.h b/lib/CodeGen/ELFCodeEmitter.h
index 2ec1f6e873..8671c674ee 100644
--- a/lib/CodeGen/ELFCodeEmitter.h
+++ b/lib/CodeGen/ELFCodeEmitter.h
@@ -58,13 +58,13 @@ namespace llvm {
/// emitLabel - Emits a label
virtual void emitLabel(MCSymbol *Label) {
- assert("emitLabel not implemented");
+ assert(0 && "emitLabel not implemented");
}
/// getLabelAddress - Return the address of the specified LabelID,
/// only usable after the LabelID has been emitted.
virtual uintptr_t getLabelAddress(MCSymbol *Label) const {
- assert("getLabelAddress not implemented");
+ assert(0 && "getLabelAddress not implemented");
return 0;
}