Forgot operands were hard coded for compile unit.

llvm-svn: 28846
This commit is contained in:
Jim Laskey 2006-06-16 23:36:12 +00:00
parent 42d7c4019e
commit e62ae62e2b

View File

@ -61,13 +61,13 @@ Value *DbgInfoIntrinsic::StripCast(Value *C) {
std::string DbgStopPointInst::getFileName() const {
GlobalVariable *GV = cast<GlobalVariable>(getContext());
ConstantStruct *CS = cast<ConstantStruct>(GV->getInitializer());
return CS->getOperand(4)->getStringValue();
return CS->getOperand(3)->getStringValue();
}
std::string DbgStopPointInst::getDirectory() const {
GlobalVariable *GV = cast<GlobalVariable>(getContext());
ConstantStruct *CS = cast<ConstantStruct>(GV->getInitializer());
return CS->getOperand(5)->getStringValue();
return CS->getOperand(4)->getStringValue();
}
//===----------------------------------------------------------------------===//