diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-12 15:45:32 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-12 15:45:32 +0000 |
commit | 9191be9523e60ccc3f69fddaa5aa784acb66a170 (patch) | |
tree | 88dba61aebd5d4c34c0388d8efa6fa47140c94c5 /include | |
parent | 8a513abbc814332c76022e73e1bc8357aa427944 (diff) | |
download | llvm-9191be9523e60ccc3f69fddaa5aa784acb66a170.tar.gz llvm-9191be9523e60ccc3f69fddaa5aa784acb66a170.tar.bz2 llvm-9191be9523e60ccc3f69fddaa5aa784acb66a170.tar.xz |
Return a StringRef from getHostCPUName.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197158 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/Host.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/Host.h b/include/llvm/Support/Host.h index 28c4cc790f..8f4bf3c1ba 100644 --- a/include/llvm/Support/Host.h +++ b/include/llvm/Support/Host.h @@ -55,7 +55,7 @@ namespace sys { /// target which matches the host. /// /// \return - The host CPU name, or empty if the CPU could not be determined. - std::string getHostCPUName(); + StringRef getHostCPUName(); /// getHostCPUFeatures - Get the LLVM names for the host CPU features. /// The particular format of the names are target dependent, and suitable for |