[IR] Remove some unused #includes (NFC)
authorVedant Kumar <vsk@apple.com>
Tue, 9 Aug 2016 23:14:37 +0000 (23:14 +0000)
committerVedant Kumar <vsk@apple.com>
Tue, 9 Aug 2016 23:14:37 +0000 (23:14 +0000)
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

llvm/lib/IR/Function.cpp

index d7baa98..d82e149 100644 (file)
 #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