mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-30 05:29:47 +00:00
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:
parent
9ff5a23186
commit
69f57b1f41
@ -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
Block a user