File tree 1 file changed +5
-11
lines changed
1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change 59
59
#include < system_error>
60
60
#include < utility>
61
61
62
- namespace llvm {
63
- namespace objcopy {
62
+ using namespace llvm ;
63
+ using namespace llvm ::objcopy;
64
+ using namespace llvm ::object;
64
65
65
66
// The name this program was invoked as.
66
- StringRef ToolName;
67
+ static StringRef ToolName;
67
68
68
- ErrorSuccess reportWarning (Error E) {
69
+ static ErrorSuccess reportWarning (Error E) {
69
70
assert (E);
70
71
WithColor::warning (errs (), ToolName) << toString (std::move (E)) << ' \n ' ;
71
72
return Error::success ();
@@ -95,13 +96,6 @@ static Expected<DriverConfig> getDriverConfig(ArrayRef<const char *> Args) {
95
96
return parseObjcopyOptions (Args, reportWarning);
96
97
}
97
98
98
- } // end namespace objcopy
99
- } // end namespace llvm
100
-
101
- using namespace llvm ;
102
- using namespace llvm ::object;
103
- using namespace llvm ::objcopy;
104
-
105
99
// For regular archives this function simply calls llvm::writeArchive,
106
100
// For thin archives it writes the archive file itself as well as its members.
107
101
static Error deepWriteArchive (StringRef ArcName,
You can’t perform that action at this time.
0 commit comments