diff options
author | Fangrui Song <i@maskray.me> | 2020-12-01 10:33:18 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2020-12-01 10:33:18 -0800 |
commit | a5309438fe8d4f1212ae645bc0aaf71fdf73d028 (patch) | |
tree | 3e1473dc3c3bb1c0eaf36c640ea76a615a5acf75 /llvm/lib/Object/Archive.cpp | |
parent | bb993b1d9de34b8e47511a746bf4422ba206123b (diff) | |
download | llvm-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.cpp | 4 |
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() {} |