Clarify that DIEString does not keep a copy of the string.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90318 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2009-12-02 15:25:16 +00:00
parent 9ff5a23186
commit 69f57b1f41
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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);