mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-19 19:31:50 +00:00
Hide constructors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76835 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
104cf9e02b
commit
6b0c2173a3
@ -33,10 +33,11 @@ namespace llvm {
|
||||
//===----------------------------------------------------------------------===//
|
||||
// MetadataBase - A base class for MDNode and MDString.
|
||||
class MetadataBase : public Value {
|
||||
public:
|
||||
protected:
|
||||
MetadataBase(const Type *Ty, unsigned scid)
|
||||
: Value(Ty, scid) {}
|
||||
|
||||
public:
|
||||
/// getType() specialization - Type is always MetadataTy.
|
||||
///
|
||||
inline const Type *getType() const {
|
||||
@ -63,15 +64,15 @@ public:
|
||||
///
|
||||
class MDString : public MetadataBase {
|
||||
MDString(const MDString &); // DO NOT IMPLEMENT
|
||||
|
||||
const char *StrBegin, *StrEnd;
|
||||
friend class LLVMContextImpl;
|
||||
|
||||
public:
|
||||
MDString(const char *begin, const char *end)
|
||||
protected:
|
||||
explicit MDString(const char *begin, const char *end)
|
||||
: MetadataBase(Type::MetadataTy, Value::MDStringVal),
|
||||
StrBegin(begin), StrEnd(end) {}
|
||||
|
||||
public:
|
||||
intptr_t size() const { return StrEnd - StrBegin; }
|
||||
|
||||
/// begin() - Pointer to the first byte of the string.
|
||||
|
Loading…
x
Reference in New Issue
Block a user