[llvm] 2147e9e - [SystemZ] Fix IWYU

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 20 17:54:37 PDT 2023


Author: Fangrui Song
Date: 2023-09-20T17:54:32-07:00
New Revision: 2147e9e09f83042defdace45eb73580e1f0f5c28

URL: https://github.com/llvm/llvm-project/commit/2147e9e09f83042defdace45eb73580e1f0f5c28
DIFF: https://github.com/llvm/llvm-project/commit/2147e9e09f83042defdace45eb73580e1f0f5c28.diff

LOG: [SystemZ] Fix IWYU

The file should include <map> instead of relying on the transitive include from
MC/MCPseudoProbe.h.

Added: 
    

Modified: 
    llvm/lib/Target/SystemZ/SystemZTargetStreamer.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/SystemZ/SystemZTargetStreamer.h b/llvm/lib/Target/SystemZ/SystemZTargetStreamer.h
index 884082cfa19657e..4c7a6ca3864336c 100644
--- a/llvm/lib/Target/SystemZ/SystemZTargetStreamer.h
+++ b/llvm/lib/Target/SystemZ/SystemZTargetStreamer.h
@@ -12,6 +12,8 @@
 #include "llvm/ADT/StringRef.h"
 #include "llvm/MC/MCInst.h"
 #include "llvm/MC/MCStreamer.h"
+#include <map>
+#include <utility>
 
 namespace llvm {
 


        


More information about the llvm-commits mailing list