[llvm-commits] CVS: llvm/lib/VMCore/IntrinsicInst.cpp
Jim Laskey
jlaskey at apple.com
Mon Jun 19 05:54:27 PDT 2006
Changes in directory llvm/lib/VMCore:
IntrinsicInst.cpp updated: 1.7 -> 1.8
---
Log message:
Handle versioning of compile unit.
---
Diffs of the changes: (+5 -0)
IntrinsicInst.cpp | 5 +++++
1 files changed, 5 insertions(+)
Index: llvm/lib/VMCore/IntrinsicInst.cpp
diff -u llvm/lib/VMCore/IntrinsicInst.cpp:1.7 llvm/lib/VMCore/IntrinsicInst.cpp:1.8
--- llvm/lib/VMCore/IntrinsicInst.cpp:1.7 Fri Jun 16 18:36:12 2006
+++ llvm/lib/VMCore/IntrinsicInst.cpp Mon Jun 19 07:54:15 2006
@@ -29,6 +29,7 @@
#include "llvm/Constants.h"
#include "llvm/GlobalVariable.h"
+#include "llvm/CodeGen/MachineDebugInfo.h"
using namespace llvm;
@@ -59,12 +60,16 @@
///
std::string DbgStopPointInst::getFileName() const {
+ // Once the operand indices are verified, update this assert
+ assert(LLVMDebugVersion == (4 << 16) && "Verify operand indices");
GlobalVariable *GV = cast<GlobalVariable>(getContext());
ConstantStruct *CS = cast<ConstantStruct>(GV->getInitializer());
return CS->getOperand(3)->getStringValue();
}
std::string DbgStopPointInst::getDirectory() const {
+ // Once the operand indices are verified, update this assert
+ assert(LLVMDebugVersion == (4 << 16) && "Verify operand indices");
GlobalVariable *GV = cast<GlobalVariable>(getContext());
ConstantStruct *CS = cast<ConstantStruct>(GV->getInitializer());
return CS->getOperand(4)->getStringValue();
More information about the llvm-commits
mailing list