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/PIC16PAN.h | |
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/PIC16PAN.h')
-rw-r--r-- | llvm/lib/Target/PIC16/PIC16PAN.h | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/llvm/lib/Target/PIC16/PIC16PAN.h b/llvm/lib/Target/PIC16/PIC16PAN.h index a14671e755f..837a42d4a54 100644 --- a/llvm/lib/Target/PIC16/PIC16PAN.h +++ b/llvm/lib/Target/PIC16/PIC16PAN.h @@ -22,19 +22,8 @@ #include <cassert> #include <cstring> #include <string> -namespace llvm { -namespace PIC16Overlay { - // Implement Overlay through colors because we may want to enhance overlay - // architecture later. More colors can be added then. - // Idea here is that functions with same color can be overlayed. - enum Overlay { - // A color name can only consist of upper case letters and underscore. - GREEN, // Stands for mainline functions that can be overlayed. - GREEN_IL, // Interrupt line version of GREEN. - RED // Stands for functions that can not be overlayed. - }; -} +namespace llvm { // A Central class to manage all ABI naming conventions. // PAN - [P]ic16 [A]BI [N]ames class PAN { @@ -425,22 +414,6 @@ namespace PIC16Overlay { } } } - inline static std::string getOverlayStr(unsigned Color) { - std::string Str = "Overlay="; - Str.append(getSectionNameForColor(Color)); - return Str; - } - - inline static std::string getSectionNameForColor(unsigned Color) { - switch (Color) { - default: - assert( 0 && "Color not supported"); - case PIC16Overlay::GREEN: - return "GREEN"; - case PIC16Overlay::GREEN_IL: - return "GREEN_IL"; - } - } inline static std::string getAutosSectionForColor(std::string Color) { return Color.append("_AUTOS"); |