Commit 00ecdf94 by Nicolas Capens Committed by Nicolas Capens

Consistently remove double colon from llvm namespace

We were mixing uses of ::llvm:: and llvm:: Since it is a well-known namespace, there's virtually no risk of unintentionally reusing the same name. This follows the recommendation of go/totw/151. Bug: consistency cleanup Change-Id: I914f7a2d7b76f21f1f0758506319f2dd47cc1832 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/49828Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarAntonio Maiorano <amaiorano@google.com>
parent b34275e4
...@@ -116,13 +116,13 @@ llvm::CodeGenOpt::Level JITGlobals::toLLVM(rr::Optimization::Level level) ...@@ -116,13 +116,13 @@ llvm::CodeGenOpt::Level JITGlobals::toLLVM(rr::Optimization::Level level)
{ {
switch(level) switch(level)
{ {
case rr::Optimization::Level::None: return ::llvm::CodeGenOpt::None; case rr::Optimization::Level::None: return llvm::CodeGenOpt::None;
case rr::Optimization::Level::Less: return ::llvm::CodeGenOpt::Less; case rr::Optimization::Level::Less: return llvm::CodeGenOpt::Less;
case rr::Optimization::Level::Default: return ::llvm::CodeGenOpt::Default; case rr::Optimization::Level::Default: return llvm::CodeGenOpt::Default;
case rr::Optimization::Level::Aggressive: return ::llvm::CodeGenOpt::Aggressive; case rr::Optimization::Level::Aggressive: return llvm::CodeGenOpt::Aggressive;
default: UNREACHABLE("Unknown Optimization Level %d", int(level)); default: UNREACHABLE("Unknown Optimization Level %d", int(level));
} }
return ::llvm::CodeGenOpt::Default; return llvm::CodeGenOpt::Default;
} }
class MemoryMapper final : public llvm::SectionMemoryManager::MemoryMapper class MemoryMapper final : public llvm::SectionMemoryManager::MemoryMapper
......
...@@ -205,13 +205,13 @@ llvm::CodeGenOpt::Level JITGlobals::toLLVM(rr::Optimization::Level level) ...@@ -205,13 +205,13 @@ llvm::CodeGenOpt::Level JITGlobals::toLLVM(rr::Optimization::Level level)
{ {
switch(level) switch(level)
{ {
case rr::Optimization::Level::None: return ::llvm::CodeGenOpt::None; case rr::Optimization::Level::None: return llvm::CodeGenOpt::None;
case rr::Optimization::Level::Less: return ::llvm::CodeGenOpt::Less; case rr::Optimization::Level::Less: return llvm::CodeGenOpt::Less;
case rr::Optimization::Level::Default: return ::llvm::CodeGenOpt::Default; case rr::Optimization::Level::Default: return llvm::CodeGenOpt::Default;
case rr::Optimization::Level::Aggressive: return ::llvm::CodeGenOpt::Aggressive; case rr::Optimization::Level::Aggressive: return llvm::CodeGenOpt::Aggressive;
default: UNREACHABLE("Unknown Optimization Level %d", int(level)); default: UNREACHABLE("Unknown Optimization Level %d", int(level));
} }
return ::llvm::CodeGenOpt::Default; return llvm::CodeGenOpt::Default;
} }
JITGlobals::JITGlobals(const char *mcpu, JITGlobals::JITGlobals(const char *mcpu,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment