From: Craig Topper Date: Mon, 20 Mar 2017 05:08:41 +0000 (+0000) Subject: [IR] Remove some unneeded includes from Operator.h and fix cpp files that were transi... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=21a749ea8f0557f7b864f92dc58d0ef25a916ae0;p=llvm [IR] Remove some unneeded includes from Operator.h and fix cpp files that were transitively depending on it. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298235 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/Operator.h b/include/llvm/IR/Operator.h index 444ce93921f..9696754792e 100644 --- a/include/llvm/IR/Operator.h +++ b/include/llvm/IR/Operator.h @@ -18,8 +18,6 @@ #include "llvm/ADT/None.h" #include "llvm/ADT/Optional.h" #include "llvm/IR/Constants.h" -#include "llvm/IR/DataLayout.h" -#include "llvm/IR/DerivedTypes.h" #include "llvm/IR/Instruction.h" #include "llvm/IR/Type.h" #include "llvm/IR/Value.h" diff --git a/lib/IR/Operator.cpp b/lib/IR/Operator.cpp index d19963cb21e..7d819f3aae8 100644 --- a/lib/IR/Operator.cpp +++ b/lib/IR/Operator.cpp @@ -12,6 +12,7 @@ //===----------------------------------------------------------------------===// #include "llvm/IR/Operator.h" +#include "llvm/IR/DataLayout.h" #include "llvm/IR/GetElementPtrTypeIterator.h" #include "llvm/IR/Instructions.h" #include "llvm/IR/Type.h" diff --git a/lib/Transforms/Utils/Evaluator.cpp b/lib/Transforms/Utils/Evaluator.cpp index 4adf1754253..e56fb832bf4 100644 --- a/lib/Transforms/Utils/Evaluator.cpp +++ b/lib/Transforms/Utils/Evaluator.cpp @@ -16,6 +16,7 @@ #include "llvm/IR/BasicBlock.h" #include "llvm/IR/CallSite.h" #include "llvm/IR/Constants.h" +#include "llvm/IR/DataLayout.h" #include "llvm/IR/DerivedTypes.h" #include "llvm/IR/DiagnosticPrinter.h" #include "llvm/IR/GlobalVariable.h"