projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
assert(0) -> LLVM_UNREACHABLE.
[oota-llvm.git]
/
lib
/
CodeGen
/
ELFCodeEmitter.cpp
diff --git
a/lib/CodeGen/ELFCodeEmitter.cpp
b/lib/CodeGen/ELFCodeEmitter.cpp
index 78f0dae51c0a9f9fa95836a4f1b21b1425fb4786..07aa1cb5bd9a74a12e173ba45a0fe38a530df3f1 100644
(file)
--- a/
lib/CodeGen/ELFCodeEmitter.cpp
+++ b/
lib/CodeGen/ELFCodeEmitter.cpp
@@
-23,6
+23,7
@@
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetAsmInfo.h"
#include "llvm/Support/Debug.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetAsmInfo.h"
#include "llvm/Support/Debug.h"
+#include "llvm/Support/ErrorHandling.h"
//===----------------------------------------------------------------------===//
// ELFCodeEmitter Implementation
//===----------------------------------------------------------------------===//
// ELFCodeEmitter Implementation
@@
-107,7
+108,7
@@
bool ELFCodeEmitter::finishFunction(MachineFunction &MF) {
MR.setResultPointer((void*)Addr);
MR.setConstantVal(JumpTableSectionIdx);
} else {
MR.setResultPointer((void*)Addr);
MR.setConstantVal(JumpTableSectionIdx);
} else {
-
assert(0 &&
"Unhandled relocation type");
+
LLVM_UNREACHABLE(
"Unhandled relocation type");
}
ES->addRelocation(MR);
}
}
ES->addRelocation(MR);
}