mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[llvm-objcopy] Internalize some symbols
This commit is contained in:
parent
b47d0d83bf
commit
c8843dd694
@ -59,13 +59,14 @@
|
||||
#include <system_error>
|
||||
#include <utility>
|
||||
|
||||
namespace llvm {
|
||||
namespace objcopy {
|
||||
using namespace llvm;
|
||||
using namespace llvm::objcopy;
|
||||
using namespace llvm::object;
|
||||
|
||||
// The name this program was invoked as.
|
||||
StringRef ToolName;
|
||||
static StringRef ToolName;
|
||||
|
||||
ErrorSuccess reportWarning(Error E) {
|
||||
static ErrorSuccess reportWarning(Error E) {
|
||||
assert(E);
|
||||
WithColor::warning(errs(), ToolName) << toString(std::move(E)) << '\n';
|
||||
return Error::success();
|
||||
@ -95,13 +96,6 @@ static Expected<DriverConfig> getDriverConfig(ArrayRef<const char *> Args) {
|
||||
return parseObjcopyOptions(Args, reportWarning);
|
||||
}
|
||||
|
||||
} // end namespace objcopy
|
||||
} // end namespace llvm
|
||||
|
||||
using namespace llvm;
|
||||
using namespace llvm::object;
|
||||
using namespace llvm::objcopy;
|
||||
|
||||
// For regular archives this function simply calls llvm::writeArchive,
|
||||
// For thin archives it writes the archive file itself as well as its members.
|
||||
static Error deepWriteArchive(StringRef ArcName,
|
||||
|
Loading…
Reference in New Issue
Block a user