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 | 6af22f02ef7b06adab142a7042c40e83bb788fb5 (patch) | |
tree | c024d07ac1d1a01b0cae2d6b178e7d8a20c20acf /llvm/lib/Target/PIC16/PIC16TargetObjectFile.cpp | |
parent | b1068e4fe3f0674857332049b9d6335b258d42b8 (diff) | |
download | bcm5719-llvm-6af22f02ef7b06adab142a7042c40e83bb788fb5.tar.gz bcm5719-llvm-6af22f02ef7b06adab142a7042c40e83bb788fb5.zip |
revert 79631
llvm-svn: 79685
Diffstat (limited to 'llvm/lib/Target/PIC16/PIC16TargetObjectFile.cpp')
-rw-r--r-- | llvm/lib/Target/PIC16/PIC16TargetObjectFile.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/llvm/lib/Target/PIC16/PIC16TargetObjectFile.cpp b/llvm/lib/Target/PIC16/PIC16TargetObjectFile.cpp index b3c435e85c7..3ff27a9ae7f 100644 --- a/llvm/lib/Target/PIC16/PIC16TargetObjectFile.cpp +++ b/llvm/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"); |