[llvm] 99a3b20 - TextStubCommon.h - move StringSwitch.h include to TextStubCommon.cpp. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri May 29 06:05:13 PDT 2020
Author: Simon Pilgrim
Date: 2020-05-29T14:03:15+01:00
New Revision: 99a3b20452b16aa92e18e4f5d2c8c6f025aafbae
URL: https://github.com/llvm/llvm-project/commit/99a3b20452b16aa92e18e4f5d2c8c6f025aafbae
DIFF: https://github.com/llvm/llvm-project/commit/99a3b20452b16aa92e18e4f5d2c8c6f025aafbae.diff
LOG: TextStubCommon.h - move StringSwitch.h include to TextStubCommon.cpp. NFC.
Only TextStubCommon.cpp actually uses StringSwitch
Added:
Modified:
llvm/lib/TextAPI/MachO/TextStubCommon.cpp
llvm/lib/TextAPI/MachO/TextStubCommon.h
Removed:
################################################################################
diff --git a/llvm/lib/TextAPI/MachO/TextStubCommon.cpp b/llvm/lib/TextAPI/MachO/TextStubCommon.cpp
index 21be654e130c..2da0b11da831 100644
--- a/llvm/lib/TextAPI/MachO/TextStubCommon.cpp
+++ b/llvm/lib/TextAPI/MachO/TextStubCommon.cpp
@@ -12,6 +12,7 @@
#include "TextStubCommon.h"
#include "TextAPIContext.h"
+#include "llvm/ADT/StringSwitch.h"
using namespace llvm::MachO;
diff --git a/llvm/lib/TextAPI/MachO/TextStubCommon.h b/llvm/lib/TextAPI/MachO/TextStubCommon.h
index a558cbcec9fb..f2cda50e297d 100644
--- a/llvm/lib/TextAPI/MachO/TextStubCommon.h
+++ b/llvm/lib/TextAPI/MachO/TextStubCommon.h
@@ -14,7 +14,6 @@
#define LLVM_TEXTAPI_TEXT_STUB_COMMON_H
#include "llvm/ADT/StringRef.h"
-#include "llvm/ADT/StringSwitch.h"
#include "llvm/Support/YAMLTraits.h"
#include "llvm/TextAPI/MachO/Architecture.h"
#include "llvm/TextAPI/MachO/ArchitectureSet.h"
More information about the llvm-commits
mailing list