diff options
author | George Burgess IV <george.burgess.iv@gmail.com> | 2016-11-03 02:21:43 +0000 |
---|---|---|
committer | George Burgess IV <george.burgess.iv@gmail.com> | 2016-11-03 02:21:43 +0000 |
commit | 70d15b36e5200b6a7abf58e411d651573b8a8080 (patch) | |
tree | 7d3a86957851d810bfcc1e1a96689da149f6e514 /clang/lib/CodeGen/CodeGenModule.h | |
parent | e4e9e281a1fbc915b6567a003fd21cc5492cde65 (diff) | |
download | bcm5719-llvm-70d15b36e5200b6a7abf58e411d651573b8a8080.tar.gz bcm5719-llvm-70d15b36e5200b6a7abf58e411d651573b8a8080.zip |
[CodeGen] Use StringRef. NFC.
Looks like CurFn's name outlives FunctionName, so we can just pass
StringRefs around rather than going from a StringRef to a std::string
to a const char* to a StringRef.
llvm-svn: 285873
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index bdd2026db28..7def77479cb 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -773,7 +773,7 @@ public: llvm::Type *getGenericBlockLiteralType(); /// Gets the address of a block which requires no captures. - llvm::Constant *GetAddrOfGlobalBlock(const BlockExpr *BE, const char *); + llvm::Constant *GetAddrOfGlobalBlock(const BlockExpr *BE, StringRef Name); /// Return a pointer to a constant CFString object for the given string. ConstantAddress GetAddrOfConstantCFString(const StringLiteral *Literal); |