summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-09-08 03:45:05 +0000
committerManman Ren <manman.ren@gmail.com>2013-09-08 03:45:05 +0000
commit2c826dcc20aaaab8c582261ef63cdf5c7d5c0470 (patch)
treebc2fd2426d6657bb6edc858622c2822f3a8974d5 /clang/lib/CodeGen
parentf2a88f3622678987a5c87657542203de1d1c27e0 (diff)
downloadbcm5719-llvm-2c826dcc20aaaab8c582261ef63cdf5c7d5c0470.tar.gz
bcm5719-llvm-2c826dcc20aaaab8c582261ef63cdf5c7d5c0470.zip
Debug Info: pass in DIScope instead of DIDescriptor in createFieldType.
Improve readability. No functionality change. llvm-svn: 190268
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp2
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index b01532a97d0..872fb650e54 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -788,7 +788,7 @@ llvm::DIType CGDebugInfo::createFieldType(StringRef name,
AccessSpecifier AS,
uint64_t offsetInBits,
llvm::DIFile tunit,
- llvm::DIDescriptor scope) {
+ llvm::DIScope scope) {
llvm::DIType debugType = getOrCreateType(type, tunit);
// Get the location for the field.
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h
index a8ba14b8b3f..8d2f5227470 100644
--- a/clang/lib/CodeGen/CGDebugInfo.h
+++ b/clang/lib/CodeGen/CGDebugInfo.h
@@ -179,7 +179,7 @@ class CGDebugInfo {
uint64_t sizeInBitsOverride, SourceLocation loc,
AccessSpecifier AS, uint64_t offsetInBits,
llvm::DIFile tunit,
- llvm::DIDescriptor scope);
+ llvm::DIScope scope);
// Helpers for collecting fields of a record.
void CollectRecordLambdaFields(const CXXRecordDecl *CXXDecl,
OpenPOWER on IntegriCloud