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 6b6e369e8a
commit 8dd21436db
1 changed files with 2 additions and 2 deletions

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();
}
//===----------------------------------------------------------------------===//