[llvm] a23e6b3 - [SampleFDO] Fix MSVC "namespace uses itself" warning (NFC)
Yang Fan via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 16 23:28:00 PST 2021
Author: Yang Fan
Date: 2021-02-17T15:27:30+08:00
New Revision: a23e6b321ca623b83252f8b1e06a2ad4fc441f89
URL: https://github.com/llvm/llvm-project/commit/a23e6b321ca623b83252f8b1e06a2ad4fc441f89
DIFF: https://github.com/llvm/llvm-project/commit/a23e6b321ca623b83252f8b1e06a2ad4fc441f89.diff
LOG: [SampleFDO] Fix MSVC "namespace uses itself" warning (NFC)
MSVC warning:
```
SampleProfileLoaderBaseImpl.h(41): warning C4515: 'llvm': namespace uses itself
```
Added:
Modified:
llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h b/llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h
index eab9869e14e4..5abec6e3b960 100644
--- a/llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h
+++ b/llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h
@@ -38,7 +38,6 @@
#include "llvm/Transforms/Utils/SampleProfileLoaderBaseUtil.h"
namespace llvm {
-using namespace llvm;
using namespace sampleprof;
using namespace sampleprofutil;
using ProfileCount = Function::ProfileCount;
More information about the llvm-commits
mailing list