aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/Archive.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2020-12-01 10:33:18 -0800
committerFangrui Song <i@maskray.me>2020-12-01 10:33:18 -0800
commita5309438fe8d4f1212ae645bc0aaf71fdf73d028 (patch)
tree3e1473dc3c3bb1c0eaf36c640ea76a615a5acf75 /llvm/lib/Object/Archive.cpp
parentbb993b1d9de34b8e47511a746bf4422ba206123b (diff)
downloadllvm-a5309438fe8d4f1212ae645bc0aaf71fdf73d028.zip
llvm-a5309438fe8d4f1212ae645bc0aaf71fdf73d028.tar.gz
llvm-a5309438fe8d4f1212ae645bc0aaf71fdf73d028.tar.bz2
static const char *const foo => const char foo[]
By default, a non-template variable of non-volatile const-qualified type having namespace-scope has internal linkage, so no need for `static`.
Diffstat (limited to 'llvm/lib/Object/Archive.cpp')
-rw-r--r--llvm/lib/Object/Archive.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Object/Archive.cpp b/llvm/lib/Object/Archive.cpp
index c18dd11..11c9de4 100644
--- a/llvm/lib/Object/Archive.cpp
+++ b/llvm/lib/Object/Archive.cpp
@@ -38,8 +38,8 @@ using namespace llvm;
using namespace object;
using namespace llvm::support::endian;
-static const char *const Magic = "!<arch>\n";
-static const char *const ThinMagic = "!<thin>\n";
+const char Magic[] = "!<arch>\n";
+const char ThinMagic[] = "!<thin>\n";
void Archive::anchor() {}