aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorMichael Kruse <llvm-project@meinersbur.de>2021-02-10 20:07:58 -0600
committerMichael Kruse <llvm-project@meinersbur.de>2021-02-10 20:58:33 -0600
commit91ca9adc9edfba164b579d02c5fe0a7a24cfdd4e (patch)
tree7b2ff05f58ff1caf628f8767fcce01eb13cf8a21 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parent5ad416ca781837ec1f2142533f044bd46e87e83c (diff)
downloadllvm-91ca9adc9edfba164b579d02c5fe0a7a24cfdd4e.zip
llvm-91ca9adc9edfba164b579d02c5fe0a7a24cfdd4e.tar.gz
llvm-91ca9adc9edfba164b579d02c5fe0a7a24cfdd4e.tar.bz2
[Polly] Avoid "using namespace llvm" in public headers. NFC.
"using namespace" pollutes the namespace of every file that includes such a header and universally considered a bad thing. Even the variant namespace polly { using namespace llvm; } (previously used by LoopGenerators.h) imports more symbols than the file is in control of. The header may include a fixed set of files from LLVM, but the header itself may by be included together with other headers from LLVM. For instance, LLVM's MemorySSA.h and Polly's ScopInfo.h both declare a class 'MemoryAccess' which may conflict. Instead of prefixing everything in Polly's header files, this patch adds 'using' statements to import only the symbols that are actually referenced in Polly. This approach is also used by MLIR to import commonly used symbols into the mlir namespace. This patch also puts the symbols declared in IslNodeBuilder.h into the Polly namespace to also be able to use the imported symbols.
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions