summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-02-01 22:51:29 +0000
committerDevang Patel <dpatel@apple.com>2010-02-01 22:51:29 +0000
commitab793231c1dec66ba8909152987b5f85968db8d0 (patch)
tree3be01849ab5dfb723b10c1b07d250e8225b93e9e /clang/lib/CodeGen/CGDebugInfo.cpp
parentc5829c4a50a18f51edfc3153142410ffaf7f3d03 (diff)
downloadbcm5719-llvm-ab793231c1dec66ba8909152987b5f85968db8d0.tar.gz
bcm5719-llvm-ab793231c1dec66ba8909152987b5f85968db8d0.zip
Fix FIXME and surrounding comment.
llvm-svn: 95023
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index fffba853480..752d5b1964c 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -784,10 +784,7 @@ llvm::DIType CGDebugInfo::CreateType(const RecordType *Ty,
// uses of the forward declaration with the final definition.
// A RD->getName() is not unique. However, the debug info descriptors
- // are uniqued. The debug info descriptor describing record's context is
- // necessary to keep two Decl's descriptor unique if their name match.
- // FIXME : Use RecordDecl's DeclContext's descriptor. As a temp. step
- // use type's name in FwdDecl.
+ // are uniqued so use type name to ensure uniquness.
std::string STy = QualType(Ty, 0).getAsString();
llvm::DIDescriptor FDContext =
getContextDescriptor(dyn_cast<Decl>(RD->getDeclContext()), Unit);
OpenPOWER on IntegriCloud