COMMON: Change way the Singleton instances are instantiated
This fixes tons of warnings with clang from a recent xcode version on macOS (and possibly other systems) complaining that an instantiation of _singleton is required but no definition is available.
This commit is contained in:
parent
1141bfc1a6
commit
eefa72afa1
36 changed files with 1 additions and 138 deletions
|
@ -33,10 +33,6 @@ 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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue