mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
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
This commit is contained in:
1 parent
8b5ee823c2
commit
92ccf70ad4
17 files changed
+127
-142
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user