Add #includes so that ROCm.h is compilable stand-alone.
authorSterling Augustine <saugustine@google.com>
Mon, 8 Jun 2020 21:11:14 +0000 (14:11 -0700)
committerSterling Augustine <saugustine@google.com>
Mon, 8 Jun 2020 21:16:30 +0000 (14:16 -0700)
Summary:
ROCm.h had been getting the declarations for various data structures
by being #included next to them, rather than #includeing them itself.

This change fixes that by explicitly including the appropriate headers.

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D81432

clang/lib/Driver/ToolChains/ROCm.h

index 9f5fa45..779e2e1 100644 (file)
 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ROCM_H
 
 #include "clang/Basic/Cuda.h"
+#include "clang/Basic/LLVM.h"
+#include "clang/Driver/Driver.h"
 #include "clang/Driver/Options.h"
 #include "llvm/ADT/SmallSet.h"
 #include "llvm/ADT/SmallString.h"
+#include "llvm/ADT/StringMap.h"
+#include "llvm/ADT/Triple.h"
+#include "llvm/Option/ArgList.h"
 
 namespace clang {
 namespace driver {