forked from OSchip/llvm-project
Forgot operands were hard coded for compile unit.
llvm-svn: 28846
This commit is contained in:
parent
6b6e369e8a
commit
8dd21436db
|
@ -61,13 +61,13 @@ Value *DbgInfoIntrinsic::StripCast(Value *C) {
|
||||||
std::string DbgStopPointInst::getFileName() const {
|
std::string DbgStopPointInst::getFileName() const {
|
||||||
GlobalVariable *GV = cast<GlobalVariable>(getContext());
|
GlobalVariable *GV = cast<GlobalVariable>(getContext());
|
||||||
ConstantStruct *CS = cast<ConstantStruct>(GV->getInitializer());
|
ConstantStruct *CS = cast<ConstantStruct>(GV->getInitializer());
|
||||||
return CS->getOperand(4)->getStringValue();
|
return CS->getOperand(3)->getStringValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string DbgStopPointInst::getDirectory() const {
|
std::string DbgStopPointInst::getDirectory() const {
|
||||||
GlobalVariable *GV = cast<GlobalVariable>(getContext());
|
GlobalVariable *GV = cast<GlobalVariable>(getContext());
|
||||||
ConstantStruct *CS = cast<ConstantStruct>(GV->getInitializer());
|
ConstantStruct *CS = cast<ConstantStruct>(GV->getInitializer());
|
||||||
return CS->getOperand(5)->getStringValue();
|
return CS->getOperand(4)->getStringValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
Loading…
Reference in New Issue