mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-04 03:06:28 +00:00
snip one more #include from Metadata.h
llvm-svn: 92214
This commit is contained in:
parent
ec51bdcaf7
commit
2f436b213d
@ -17,7 +17,6 @@
|
||||
#define LLVM_METADATA_H
|
||||
|
||||
#include "llvm/Value.h"
|
||||
#include "llvm/Type.h"
|
||||
#include "llvm/ADT/FoldingSet.h"
|
||||
#include "llvm/ADT/ilist_node.h"
|
||||
|
||||
@ -25,6 +24,7 @@ namespace llvm {
|
||||
class Constant;
|
||||
class Instruction;
|
||||
class LLVMContext;
|
||||
class Module;
|
||||
class MetadataContextImpl;
|
||||
template <typename T> class SmallVectorImpl;
|
||||
template<class PtrType, unsigned SmallSize> class SmallPtrSet;
|
||||
@ -55,8 +55,7 @@ class MDString : public MetadataBase {
|
||||
|
||||
StringRef Str;
|
||||
protected:
|
||||
explicit MDString(LLVMContext &C, StringRef S)
|
||||
: MetadataBase(Type::getMetadataTy(C), Value::MDStringVal), Str(S) {}
|
||||
explicit MDString(LLVMContext &C, StringRef S);
|
||||
|
||||
public:
|
||||
static MDString *get(LLVMContext &Context, StringRef Str);
|
||||
|
@ -15,6 +15,7 @@
|
||||
#include "llvm/Constants.h"
|
||||
#include "llvm/Function.h"
|
||||
#include "llvm/InlineAsm.h"
|
||||
#include "llvm/Type.h"
|
||||
#include "llvm/Value.h"
|
||||
#include "llvm/Assembly/Writer.h"
|
||||
#include "llvm/CodeGen/MachineFunction.h"
|
||||
|
@ -29,6 +29,10 @@ using namespace llvm;
|
||||
//===----------------------------------------------------------------------===//
|
||||
// MDString implementation.
|
||||
//
|
||||
|
||||
MDString::MDString(LLVMContext &C, StringRef S)
|
||||
: MetadataBase(Type::getMetadataTy(C), Value::MDStringVal), Str(S) {}
|
||||
|
||||
MDString *MDString::get(LLVMContext &Context, StringRef Str) {
|
||||
LLVMContextImpl *pImpl = Context.pImpl;
|
||||
StringMapEntry<MDString *> &Entry =
|
||||
|
Loading…
x
Reference in New Issue
Block a user