[PATCH] [opt] Inline a trivial lookup function into the header.
Chandler Carruth
chandlerc at gmail.com
Fri Jun 26 20:40:22 PDT 2015
REPOSITORY
rL LLVM
http://reviews.llvm.org/D10788
Files:
lld/trunk/COFF/InputFiles.cpp
lld/trunk/COFF/InputFiles.h
Index: lld/trunk/COFF/InputFiles.cpp
===================================================================
--- lld/trunk/COFF/InputFiles.cpp
+++ lld/trunk/COFF/InputFiles.cpp
@@ -114,10 +114,6 @@
return initializeSymbols();
}
-SymbolBody *ObjectFile::getSymbolBody(uint32_t SymbolIndex) {
- return SparseSymbolBodies[SymbolIndex]->getReplacement();
-}
-
std::error_code ObjectFile::initializeChunks() {
uint32_t NumSections = COFFObj->getNumberOfSections();
Chunks.reserve(NumSections);
Index: lld/trunk/COFF/InputFiles.h
===================================================================
--- lld/trunk/COFF/InputFiles.h
+++ lld/trunk/COFF/InputFiles.h
@@ -101,7 +101,9 @@
// Returns a SymbolBody object for the SymbolIndex'th symbol in the
// underlying object file.
- SymbolBody *getSymbolBody(uint32_t SymbolIndex);
+ SymbolBody *getSymbolBody(uint32_t SymbolIndex) {
+ return SparseSymbolBodies[SymbolIndex]->getReplacement();
+ }
// Returns the underying COFF file.
COFFObjectFile *getCOFFObj() { return COFFObj.get(); }
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10788.28622.patch
Type: text/x-patch
Size: 1061 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150627/596c45ad/attachment.bin>
More information about the llvm-commits
mailing list