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/CodeGen/CodeGenModule.cpp | |
parent | ff379b69b2f82c9ca9b955b0458bb1aba85b9b85 (diff) | |
download | bcm5719-llvm-1dbc7a7a5a4836f84d7304762ba93da34a339c52.tar.gz bcm5719-llvm-1dbc7a7a5a4836f84d7304762ba93da34a339c52.zip |
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/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 42dc8119947..399b73971ea 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -1454,7 +1454,7 @@ ConstantAddress CodeGenModule::GetAddrOfUuidDescriptor( const CXXUuidofExpr* E) { // Sema has verified that IIDSource has a __declspec(uuid()), and that its // well-formed. - StringRef Uuid = E->getUuidAsStringRef(Context); + StringRef Uuid = E->getUuidAsStringRef(); std::string Name = "_GUID_" + Uuid.lower(); std::replace(Name.begin(), Name.end(), '-', '_'); |