mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 17:25:21 +00:00
Remove dead debug info intrinsics.
Intrinsic::dbg_stoppoint Intrinsic::dbg_region_start Intrinsic::dbg_region_end Intrinsic::dbg_func_start AutoUpgrade simply ignores these intrinsics now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92557 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -8,11 +8,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// This file implements methods that make it really easy to deal with intrinsic
|
||||
// functions with the isa/dyncast family of functions. In particular, this
|
||||
// allows you to do things like:
|
||||
//
|
||||
// if (DbgStopPointInst *SPI = dyn_cast<DbgStopPointInst>(Inst))
|
||||
// ... SPI->getFileName() ... SPI->getDirectory() ...
|
||||
// functions.
|
||||
//
|
||||
// All intrinsic function calls are instances of the call instruction, so these
|
||||
// are all subclasses of the CallInst class. Note that none of these classes
|
||||
@@ -54,22 +50,6 @@ Value *DbgInfoIntrinsic::StripCast(Value *C) {
|
||||
return dyn_cast<GlobalVariable>(C);
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
/// DbgStopPointInst - This represents the llvm.dbg.stoppoint instruction.
|
||||
///
|
||||
|
||||
Value *DbgStopPointInst::getFileName() const {
|
||||
// Once the operand indices are verified, update this assert
|
||||
assert(LLVMDebugVersion == (7 << 16) && "Verify operand indices");
|
||||
return getContext()->getOperand(3);
|
||||
}
|
||||
|
||||
Value *DbgStopPointInst::getDirectory() const {
|
||||
// Once the operand indices are verified, update this assert
|
||||
assert(LLVMDebugVersion == (7 << 16) && "Verify operand indices");
|
||||
return getContext()->getOperand(4);
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
/// DbgValueInst - This represents the llvm.dbg.value instruction.
|
||||
///
|
||||
|
Reference in New Issue
Block a user