From 93c1b3caf052f6575abffd29ae53441db2849534 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Tue, 5 Oct 2021 08:29:16 +0200 Subject: [lldb] Remove some anonymous namespaces .. and reduce the scope of others. They don't follow llvm coding standards (which say they should be used only when the same effect cannot be achieved with the static keyword), and they set a bad example. --- .../RenderScript/RenderScriptRuntime/RenderScriptExpressionOpts.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptExpressionOpts.cpp') diff --git a/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptExpressionOpts.cpp b/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptExpressionOpts.cpp index 08a752eaa888..f54f69a3321b 100644 --- a/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptExpressionOpts.cpp +++ b/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptExpressionOpts.cpp @@ -40,9 +40,8 @@ using namespace lldb_renderscript; // perform a fixup pass that removes those assumptions right before the module // is sent to be generated by the llvm backend. -namespace { -bool registerRSDefaultTargetOpts(clang::TargetOptions &proto, - const llvm::Triple::ArchType &arch) { +static bool registerRSDefaultTargetOpts(clang::TargetOptions &proto, + const llvm::Triple::ArchType &arch) { switch (arch) { case llvm::Triple::ArchType::x86: proto.Triple = "i686--linux-android"; @@ -75,7 +74,6 @@ bool registerRSDefaultTargetOpts(clang::TargetOptions &proto, } return true; } -} // end anonymous namespace bool RenderScriptRuntimeModulePass::runOnModule(llvm::Module &module) { bool changed_module = false; -- cgit v1.2.3