diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-21 23:08:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-21 23:08:09 +0000 |
commit | ec3579ff0d1d0872074d7f726f63e4aae90e6679 (patch) | |
tree | 9714d07ab0ec2af6f3e4e55b48fa46a91434b468 /lib/Target/PIC16/PIC16TargetObjectFile.cpp | |
parent | d6f761e0eb610936a6b8495360b62696dcd85164 (diff) |
revert 79631
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79685 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PIC16/PIC16TargetObjectFile.cpp')
-rw-r--r-- | lib/Target/PIC16/PIC16TargetObjectFile.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/lib/Target/PIC16/PIC16TargetObjectFile.cpp b/lib/Target/PIC16/PIC16TargetObjectFile.cpp index b3c435e85c..3ff27a9ae7 100644 --- a/lib/Target/PIC16/PIC16TargetObjectFile.cpp +++ b/lib/Target/PIC16/PIC16TargetObjectFile.cpp @@ -82,35 +82,6 @@ getSectionForFunctionFrame(const std::string &FnName) const { return getPIC16Section(T.c_str(), SectionKind::getDataRel()); } -std::string PIC16TargetObjectFile::getNameForFunctFrame(const Function *F, - bool IsAutosSection) { - std::string SectionName = F->getName(); - if (F->hasSection()) { - std::string Sectn = F->getSection(); - std::string StrToFind = "Overlay="; - size_t Pos = Sectn.find(StrToFind); - if (Pos != std::string::npos) { - Pos += StrToFind.length(); - std::string Color = ""; - char c = Sectn.at(Pos); - // A Color can only consist on upper case letters or underscore. - while ((c >= 'A' && c<= 'Z') || c == '_') { - Color.append(1,c); - Pos++; - if (Pos >= Sectn.length()) - break; - c = Sectn.at(Pos); - } - // Autos Section need to be given a different name from function frame. - if (IsAutosSection) - SectionName = PAN::getAutosSectionForColor(Color); - else - SectionName = Color; - } - } - return SectionName; -} - const MCSection * PIC16TargetObjectFile::getBSSSectionForGlobal(const GlobalVariable *GV) const { assert(GV->hasInitializer() && "This global doesn't need space"); |