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
diff --git a/llvm/lib/CodeGen/MachOCodeEmitter.cpp b/llvm/lib/CodeGen/MachOCodeEmitter.cpp
index a076a3c..14ebc3f 100644
--- a/llvm/lib/CodeGen/MachOCodeEmitter.cpp
+++ b/llvm/lib/CodeGen/MachOCodeEmitter.cpp
@@ -105,7 +105,7 @@
// FIXME: This should be a set or something that uniques
MOW.PendingGlobals.push_back(MR.getGlobalValue());
} else {
- LLVM_UNREACHABLE("Unhandled relocation type");
+ llvm_unreachable("Unhandled relocation type");
}
MOS->addRelocation(MR);
}