diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-03-27 04:46:07 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-03-27 04:46:07 +0000 |
commit | 1dbc7a7a5a4836f84d7304762ba93da34a339c52 (patch) | |
tree | 788cff8495e6c05b6510c4ff5d487e7191284006 /clang/lib/AST/MicrosoftMangle.cpp | |
parent | ff379b69b2f82c9ca9b955b0458bb1aba85b9b85 (diff) |
Improve the representation of CXXUuidofExpr
Keep a pointer to the UuidAttr that the CXXUuidofExpr corresponds to.
This makes translating from __uuidof to the underlying constant a lot
more straightforward.
llvm-svn: 264529
Diffstat (limited to 'clang/lib/AST/MicrosoftMangle.cpp')
-rw-r--r-- | clang/lib/AST/MicrosoftMangle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/MicrosoftMangle.cpp b/clang/lib/AST/MicrosoftMangle.cpp index 2be8cec696dc..002c2205314a 100644 --- a/clang/lib/AST/MicrosoftMangle.cpp +++ b/clang/lib/AST/MicrosoftMangle.cpp @@ -1186,7 +1186,7 @@ void MicrosoftCXXNameMangler::mangleExpression(const Expr *E) { // This CXXUuidofExpr is mangled as-if it were actually a VarDecl from // const __s_GUID _GUID_{lower case UUID with underscores} - StringRef Uuid = UE->getUuidAsStringRef(Context.getASTContext()); + StringRef Uuid = UE->getUuidAsStringRef(); std::string Name = "_GUID_" + Uuid.lower(); std::replace(Name.begin(), Name.end(), '-', '_'); |