diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-05 03:35:15 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-05 03:35:15 +0000 |
commit | 4a0bf5423c2dc7eb8ae197447b4b61e6517f108a (patch) | |
tree | 53e6b2889489482bd0daf550d2f26e524e1f615f /include/llvm/Object | |
parent | a5db79d5148d3972b90390f526fd35d707729c5a (diff) | |
download | llvm-4a0bf5423c2dc7eb8ae197447b4b61e6517f108a.tar.gz llvm-4a0bf5423c2dc7eb8ae197447b4b61e6517f108a.tar.bz2 llvm-4a0bf5423c2dc7eb8ae197447b4b61e6517f108a.tar.xz |
Use the raw member names in Archive::Archive.
This a bit more efficient and avoids having a function that uses the string
table being called by a function that searches for it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185680 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Object')
-rw-r--r-- | include/llvm/Object/Archive.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Object/Archive.h b/include/llvm/Object/Archive.h index e2478f6754..7a818a10d8 100644 --- a/include/llvm/Object/Archive.h +++ b/include/llvm/Object/Archive.h @@ -114,6 +114,7 @@ public: } error_code getName(StringRef &Result) const; + StringRef getRawName() const { return ToHeader(Data.data())->getName(); } int getLastModified() const; int getUID() const; int getGID() const; |