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/IRReader | |
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/IRReader')
-rw-r--r-- | llvm/lib/IRReader/IRReader.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/IRReader/IRReader.cpp b/llvm/lib/IRReader/IRReader.cpp index cb33e40..e7fd835 100644 --- a/llvm/lib/IRReader/IRReader.cpp +++ b/llvm/lib/IRReader/IRReader.cpp @@ -24,10 +24,10 @@ namespace llvm { extern bool TimePassesIsEnabled; } -static const char *const TimeIRParsingGroupName = "irparse"; -static const char *const TimeIRParsingGroupDescription = "LLVM IR Parsing"; -static const char *const TimeIRParsingName = "parse"; -static const char *const TimeIRParsingDescription = "Parse IR"; +const char TimeIRParsingGroupName[] = "irparse"; +const char TimeIRParsingGroupDescription[] = "LLVM IR Parsing"; +const char TimeIRParsingName[] = "parse"; +const char TimeIRParsingDescription[] = "Parse IR"; std::unique_ptr<Module> llvm::getLazyIRModule(std::unique_ptr<MemoryBuffer> Buffer, SMDiagnostic &Err, |