Revert "COMMON: Change way the Singleton instances are instantiated"

This reverts commit eefa72afa1.

With this patch ConfigManager is broken.
This commit is contained in:
Eugene Sandulenko 2017-07-10 21:17:41 +02:00
parent c61c0cb0ff
commit 940b2a20f1
36 changed files with 138 additions and 1 deletions

View file

@ -33,6 +33,10 @@ extern char __plugin_hole_start; // Indicates start of hole in program file for
extern char __plugin_hole_end; // Indicates end of hole in program file
extern char _gp[]; // Value of gp register
namespace Common {
DECLARE_SINGLETON(ShortSegmentManager); // For singleton
}
ShortSegmentManager::ShortSegmentManager() {
_shortsStart = &__plugin_hole_start ; //shorts segment begins at the plugin hole we made when linking
_shortsEnd = &__plugin_hole_end; //and ends at the end of that hole.