diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-25 06:02:13 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-25 06:02:13 +0000 |
commit | d43b86d4a45f4cfc5b1e27d62ace35940a52e82b (patch) | |
tree | 1eac3c83e4d61f89c7cf156582d0e7734ccbd79a /llvm/lib/Linker/LinkItems.cpp | |
parent | fbea11ae66fd0b59a7d38a7f484c893b744cc78c (diff) | |
download | bcm5719-llvm-d43b86d4a45f4cfc5b1e27d62ace35940a52e82b.tar.gz bcm5719-llvm-d43b86d4a45f4cfc5b1e27d62ace35940a52e82b.zip |
Finish migrating VMCore to StringRef/Twine based APIs.
llvm-svn: 77051
Diffstat (limited to 'llvm/lib/Linker/LinkItems.cpp')
-rw-r--r-- | llvm/lib/Linker/LinkItems.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Linker/LinkItems.cpp b/llvm/lib/Linker/LinkItems.cpp index db86005876e..3c9a8571480 100644 --- a/llvm/lib/Linker/LinkItems.cpp +++ b/llvm/lib/Linker/LinkItems.cpp @@ -70,12 +70,12 @@ Linker::LinkInItems(const ItemList& Items, ItemList& NativeItems) { /// LinkInLibrary - links one library into the HeadModule. /// -bool Linker::LinkInLibrary(const std::string& Lib, bool& is_native) { +bool Linker::LinkInLibrary(const StringRef &Lib, bool& is_native) { is_native = false; // Determine where this library lives. sys::Path Pathname = FindLib(Lib); if (Pathname.isEmpty()) - return error("Cannot find library '" + Lib + "'"); + return error("Cannot find library '" + Lib.str() + "'"); // If its an archive, try to link it in std::string Magic; @@ -83,7 +83,7 @@ bool Linker::LinkInLibrary(const std::string& Lib, bool& is_native) { switch (sys::IdentifyFileType(Magic.c_str(), 64)) { default: llvm_unreachable("Bad file type identification"); case sys::Unknown_FileType: - return warning("Supposed library '" + Lib + "' isn't a library."); + return warning("Supposed library '" + Lib.str() + "' isn't a library."); case sys::Bitcode_FileType: // LLVM ".so" file. |