[llvm] 7f0ea5c - [MCA] CodeEmitter.h - remove unused <string> include. NFCI.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 19 04:56:24 PDT 2021


Author: Simon Pilgrim
Date: 2021-04-19T12:56:09+01:00
New Revision: 7f0ea5c8b6e81949b06abebf65b9bd5a3a78d36b

URL: https://github.com/llvm/llvm-project/commit/7f0ea5c8b6e81949b06abebf65b9bd5a3a78d36b
DIFF: https://github.com/llvm/llvm-project/commit/7f0ea5c8b6e81949b06abebf65b9bd5a3a78d36b.diff

LOG: [MCA] CodeEmitter.h - remove unused <string> include. NFCI.

Add explicit SmallString.h include - which is used in the header

Added: 
    

Modified: 
    llvm/include/llvm/MCA/CodeEmitter.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/MCA/CodeEmitter.h b/llvm/include/llvm/MCA/CodeEmitter.h
index edbadcc8fafa4..502d8127fa3cf 100644
--- a/llvm/include/llvm/MCA/CodeEmitter.h
+++ b/llvm/include/llvm/MCA/CodeEmitter.h
@@ -17,6 +17,7 @@
 #define LLVM_MCA_CODEEMITTER_H
 
 #include "llvm/ADT/ArrayRef.h"
+#include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/MC/MCAsmBackend.h"
 #include "llvm/MC/MCCodeEmitter.h"
@@ -24,8 +25,6 @@
 #include "llvm/MC/MCSubtargetInfo.h"
 #include "llvm/Support/raw_ostream.h"
 
-#include <string>
-
 namespace llvm {
 namespace mca {
 


        


More information about the llvm-commits mailing list