diff options
author | Tom Stellard <tstellar@redhat.com> | 2018-09-07 15:51:52 +0000 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2018-09-07 15:51:52 +0000 |
commit | a6749135df51712eafd161245b38d8e62b73a254 (patch) | |
tree | 14a174cc7ba0d4ad7bc5e758b545a27d348d4311 /lld/lib | |
parent | 226c14a5fa7d2027e9a25c6d43b98b242794a7ed (diff) | |
download | llvm-project-a6749135df51712eafd161245b38d8e62b73a254.tar.gz |
MachO: Change getString16() back to inline function
This was accidentally changed in r341670.
llvm-svn: 341672
Diffstat (limited to 'lld/lib')
-rw-r--r-- | lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryUtils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryUtils.h b/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryUtils.h index f0340a9d23f9..ee9e174b82e0 100644 --- a/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryUtils.h +++ b/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryUtils.h @@ -185,7 +185,7 @@ packRelocation(const Relocation &r, bool swap, bool isBigEndian) { return result; } -static StringRef getString16(const char s[16]) { +inline StringRef getString16(const char s[16]) { // The StringRef(const char *) constructor passes the const char * to // strlen(), so we can't use this constructor here, because if there is no // null terminator in s, then strlen() will read past the end of the array. |