From 92ccf70ad448eb02f9f273d2c70ae4708b3bd0f2 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sat, 25 Jul 2009 06:02:13 +0000 Subject: Finish migrating VMCore to StringRef/Twine based APIs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77051 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/GlobalValue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/llvm/GlobalValue.h') diff --git a/include/llvm/GlobalValue.h b/include/llvm/GlobalValue.h index d53d49bfec..7b0de34d9c 100644 --- a/include/llvm/GlobalValue.h +++ b/include/llvm/GlobalValue.h @@ -90,7 +90,7 @@ public: bool hasSection() const { return !Section.empty(); } const std::string &getSection() const { return Section; } - void setSection(const std::string &S) { Section = S; } + void setSection(const StringRef &S) { Section = S; } /// If the usage is empty (except transitively dead constants), then this /// global value can can be safely deleted since the destructor will -- cgit v1.2.3