From: Vedant Kumar Date: Tue, 9 Aug 2016 23:14:37 +0000 (+0000) Subject: [IR] Remove some unused #includes (NFC) X-Git-Tag: llvmorg-4.0.0-rc1~12909 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=809fe6ca309faa514526fb34c44737cfa4c6a0b8;p=platform%2Fupstream%2Fllvm.git [IR] Remove some unused #includes (NFC) I needed a reader-writer lock for a downstream project and noticed that llvm has one. Function.cpp is the only file in-tree that refers to it. To anyone reading this: are you using RWMutex in out-of-tree code? Maybe it's not worth keeping around any more... Since we're not actually using RWMutex *here*, remove the #include (and a few other stale headers while we're at it). llvm-svn: 278178 --- diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp index d7baa98..d82e149 100644 --- a/llvm/lib/IR/Function.cpp +++ b/llvm/lib/IR/Function.cpp @@ -26,10 +26,6 @@ #include "llvm/IR/MDBuilder.h" #include "llvm/IR/Metadata.h" #include "llvm/IR/Module.h" -#include "llvm/Support/ManagedStatic.h" -#include "llvm/Support/RWMutex.h" -#include "llvm/Support/StringPool.h" -#include "llvm/Support/Threading.h" using namespace llvm; // Explicit instantiations of SymbolTableListTraits since some of the methods