mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 08:28:19 +00:00
Forgot operands were hard coded for compile unit.
llvm-svn: 28846
This commit is contained in:
parent
42d7c4019e
commit
e62ae62e2b
@ -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();
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
Loading…
Reference in New Issue
Block a user