From 90cd68acc6543a9aefdd29b6bc85d8404bb58c2b Mon Sep 17 00:00:00 2001 From: Jim Laskey Date: Mon, 19 Jun 2006 12:54:15 +0000 Subject: Handle versioning of compile unit. llvm-svn: 28855 --- llvm/lib/VMCore/IntrinsicInst.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/lib/VMCore/IntrinsicInst.cpp') diff --git a/llvm/lib/VMCore/IntrinsicInst.cpp b/llvm/lib/VMCore/IntrinsicInst.cpp index 2f3ade34c13..9c2efc38816 100644 --- a/llvm/lib/VMCore/IntrinsicInst.cpp +++ b/llvm/lib/VMCore/IntrinsicInst.cpp @@ -29,6 +29,7 @@ #include "llvm/Constants.h" #include "llvm/GlobalVariable.h" +#include "llvm/CodeGen/MachineDebugInfo.h" using namespace llvm; @@ -59,12 +60,16 @@ Value *DbgInfoIntrinsic::StripCast(Value *C) { /// std::string DbgStopPointInst::getFileName() const { + // Once the operand indices are verified, update this assert + assert(LLVMDebugVersion == (4 << 16) && "Verify operand indices"); GlobalVariable *GV = cast(getContext()); ConstantStruct *CS = cast(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(getContext()); ConstantStruct *CS = cast(GV->getInitializer()); return CS->getOperand(4)->getStringValue(); -- cgit v1.2.3