aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/DebugInfo.h
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-11-10 22:05:35 +0000
committerDevang Patel <dpatel@apple.com>2009-11-10 22:05:35 +0000
commite940b1d8d14af6d3006f6fbad95b9ff332469df4 (patch)
tree21dee0a77a823633e9fadeca880d6dedf32088d8 /include/llvm/Analysis/DebugInfo.h
parent1b8b05938fb8d9aacc01f526f010580668e028f5 (diff)
downloadexternal_llvm-e940b1d8d14af6d3006f6fbad95b9ff332469df4.zip
external_llvm-e940b1d8d14af6d3006f6fbad95b9ff332469df4.tar.gz
external_llvm-e940b1d8d14af6d3006f6fbad95b9ff332469df4.tar.bz2
Process InlinedAt location info.
Update InsertDeclare to return newly inserted llvm.dbg.declare intrinsic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86727 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/DebugInfo.h')
-rw-r--r--include/llvm/Analysis/DebugInfo.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h
index cfe3632..0a8e197 100644
--- a/include/llvm/Analysis/DebugInfo.h
+++ b/include/llvm/Analysis/DebugInfo.h
@@ -623,12 +623,12 @@ namespace llvm {
void InsertRegionEnd(DIDescriptor D, BasicBlock *BB);
/// InsertDeclare - Insert a new llvm.dbg.declare intrinsic call.
- void InsertDeclare(llvm::Value *Storage, DIVariable D,
- BasicBlock *InsertAtEnd);
+ Instruction *InsertDeclare(llvm::Value *Storage, DIVariable D,
+ BasicBlock *InsertAtEnd);
/// InsertDeclare - Insert a new llvm.dbg.declare intrinsic call.
- void InsertDeclare(llvm::Value *Storage, DIVariable D,
- Instruction *InsertBefore);
+ Instruction *InsertDeclare(llvm::Value *Storage, DIVariable D,
+ Instruction *InsertBefore);
private:
Constant *GetTagConstant(unsigned TAG);
@@ -731,6 +731,9 @@ bool getLocationInfo(const Value *V, std::string &DisplayName,
/// processDeclare - Process DbgDeclareInst.
void processDeclare(DbgDeclareInst *DDI);
+ /// processLocation - Process DILocation.
+ void processLocation(DILocation Loc);
+
/// addCompileUnit - Add compile unit into CUs.
bool addCompileUnit(DICompileUnit CU);