aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-06-03 17:04:51 +0000
committerDevang Patel <dpatel@apple.com>2011-06-03 17:04:51 +0000
commitda174c1d3b1fa31d7c5c47a645c66d600b4b7bd8 (patch)
treedae871bfb5a71d31d03d1c5b0cd936a70ec5f7df /include/llvm/Analysis
parent6a0c04dff288b7eaa0459cc7419159765bb5a0b9 (diff)
downloadexternal_llvm-da174c1d3b1fa31d7c5c47a645c66d600b4b7bd8.zip
external_llvm-da174c1d3b1fa31d7c5c47a645c66d600b4b7bd8.tar.gz
external_llvm-da174c1d3b1fa31d7c5c47a645c66d600b4b7bd8.tar.bz2
A typedef's context is not the same as type's context. It is the context of typedef decl itself. Use extra parameter to communicate this to DIBuilder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132556 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r--include/llvm/Analysis/DIBuilder.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Analysis/DIBuilder.h b/include/llvm/Analysis/DIBuilder.h
index 5846dbf..96c6587 100644
--- a/include/llvm/Analysis/DIBuilder.h
+++ b/include/llvm/Analysis/DIBuilder.h
@@ -117,8 +117,9 @@ namespace llvm {
/// @param Name Typedef name.
/// @param File File where this type is defined.
/// @param LineNo Line number.
+ /// @param Context The surrounding context for the typedef.
DIType createTypedef(DIType Ty, StringRef Name, DIFile File,
- unsigned LineNo);
+ unsigned LineNo, DIDescriptor Context);
/// createFriend - Create debugging information entry for a 'friend'.
DIType createFriend(DIType Ty, DIType FriendTy);