[lld] r195855 - [PECOFF] Rename getFinalSectionName -> getOutputSectionName.

Rui Ueyama ruiu at google.com
Wed Nov 27 10:03:31 PST 2013


Author: ruiu
Date: Wed Nov 27 12:03:31 2013
New Revision: 195855

URL: http://llvm.org/viewvc/llvm-project?rev=195855&view=rev
Log:
[PECOFF] Rename getFinalSectionName -> getOutputSectionName.

Modified:
    lld/trunk/include/lld/ReaderWriter/PECOFFLinkingContext.h
    lld/trunk/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp
    lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp

Modified: lld/trunk/include/lld/ReaderWriter/PECOFFLinkingContext.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/ReaderWriter/PECOFFLinkingContext.h?rev=195855&r1=195854&r2=195855&view=diff
==============================================================================
--- lld/trunk/include/lld/ReaderWriter/PECOFFLinkingContext.h (original)
+++ lld/trunk/include/lld/ReaderWriter/PECOFFLinkingContext.h Wed Nov 27 12:03:31 2013
@@ -194,7 +194,7 @@ public:
   void setImageType(ImageType type) { _imageType = type; }
   ImageType getImageType() const { return _imageType; }
 
-  StringRef getFinalSectionName(StringRef sectionName) const;
+  StringRef getOutputSectionName(StringRef sectionName) const;
   bool addSectionRenaming(raw_ostream &diagnostics,
                           StringRef from, StringRef to);
 

Modified: lld/trunk/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp?rev=195855&r1=195854&r2=195855&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp (original)
+++ lld/trunk/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp Wed Nov 27 12:03:31 2013
@@ -111,11 +111,11 @@ bool PECOFFLinkingContext::createImplici
 /// executable. We have a mapping for the renaming. This method looks up the
 /// table and returns a new section name if renamed.
 StringRef
-PECOFFLinkingContext::getFinalSectionName(StringRef sectionName) const {
+PECOFFLinkingContext::getOutputSectionName(StringRef sectionName) const {
   auto it = _renamedSections.find(sectionName);
   if (it == _renamedSections.end())
     return sectionName;
-  return getFinalSectionName(it->second);
+  return getOutputSectionName(it->second);
 }
 
 /// Adds a mapping to the section renaming table. This method will be used for

Modified: lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp?rev=195855&r1=195854&r2=195855&view=diff
==============================================================================
--- lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp (original)
+++ lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp Wed Nov 27 12:03:31 2013
@@ -252,9 +252,9 @@ TEST_F(WinLinkParserTest, Include) {
 TEST_F(WinLinkParserTest, Merge) {
   EXPECT_TRUE(parse("link.exe", "/merge:.foo=.bar", "/merge:.bar=.baz",
                     "a.out", nullptr));
-  EXPECT_EQ(".baz", _context.getFinalSectionName(".foo"));
-  EXPECT_EQ(".baz", _context.getFinalSectionName(".bar"));
-  EXPECT_EQ(".abc", _context.getFinalSectionName(".abc"));
+  EXPECT_EQ(".baz", _context.getOutputSectionName(".foo"));
+  EXPECT_EQ(".baz", _context.getOutputSectionName(".bar"));
+  EXPECT_EQ(".abc", _context.getOutputSectionName(".abc"));
 }
 
 TEST_F(WinLinkParserTest, Merge_Circular) {





More information about the llvm-commits mailing list