mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 17:34:41 +00:00
Forgot operands were hard coded for compile unit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28846 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e9493d330d
commit
f06ef2cc16
@ -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…
x
Reference in New Issue
Block a user