projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Now that hopefully all direct accesses to InvokeInst operands are fixed
[oota-llvm.git]
/
include
/
llvm
/
Metadata.h
diff --git
a/include/llvm/Metadata.h
b/include/llvm/Metadata.h
index cecb7dadaf1ffcfa3d1ad345fc96983c4e7a4075..ff3e03e96fd86bdb9946ae509eefe09b9cc1558b 100644
(file)
--- a/
include/llvm/Metadata.h
+++ b/
include/llvm/Metadata.h
@@
-43,8
+43,10
@@
protected:
public:
static MDString *get(LLVMContext &Context, StringRef Str);
public:
static MDString *get(LLVMContext &Context, StringRef Str);
- static MDString *get(LLVMContext &Context, const char *Str);
-
+ static MDString *get(LLVMContext &Context, const char *Str) {
+ return get(Context, Str ? StringRef(Str) : StringRef());
+ }
+
StringRef getString() const { return Str; }
unsigned getLength() const { return (unsigned)Str.size(); }
StringRef getString() const { return Str; }
unsigned getLength() const { return (unsigned)Str.size(); }