forked from OSchip/llvm-project
Clarify that DIEString does not keep a copy of the string.
llvm-svn: 90318
This commit is contained in:
parent
9485bf9538
commit
8c33959df2
|
@ -274,7 +274,7 @@ namespace llvm {
|
|||
};
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
/// DIEString - A string value DIE.
|
||||
/// DIEString - A string value DIE. This DIE keeps string reference only.
|
||||
///
|
||||
class DIEString : public DIEValue {
|
||||
const StringRef Str;
|
||||
|
|
|
@ -330,8 +330,8 @@ void DwarfDebug::addSInt(DIE *Die, unsigned Attribute,
|
|||
Die->addValue(Attribute, Form, Value);
|
||||
}
|
||||
|
||||
/// addString - Add a string attribute data and value.
|
||||
///
|
||||
/// addString - Add a string attribute data and value. DIEString only
|
||||
/// keeps string reference.
|
||||
void DwarfDebug::addString(DIE *Die, unsigned Attribute, unsigned Form,
|
||||
const StringRef String) {
|
||||
DIEValue *Value = new DIEString(String);
|
||||
|
|
Loading…
Reference in New Issue