Skip to content

Commit 74197ba

Browse files
authored
[NFC][LLVM] Namespace cleanup in llc/lli.cpp (#162936)
Move file local function and variables out of anonymous namespace and mark them static.
1 parent a0b8261 commit 74197ba

File tree

2 files changed

+199
-203
lines changed

2 files changed

+199
-203
lines changed

llvm/tools/llc/llc.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,12 @@ static cl::opt<std::string> PassPipeline(
218218
static cl::alias PassPipeline2("p", cl::aliasopt(PassPipeline),
219219
cl::desc("Alias for -passes"));
220220

221-
namespace {
222-
223-
std::vector<std::string> &getRunPassNames() {
221+
static std::vector<std::string> &getRunPassNames() {
224222
static std::vector<std::string> RunPassNames;
225223
return RunPassNames;
226224
}
227225

226+
namespace {
228227
struct RunPassOption {
229228
void operator=(const std::string &Val) const {
230229
if (Val.empty())

0 commit comments

Comments
 (0)