mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-17 17:29:02 +02:00
Get rid of global.params.dataLayout.
The string representation of the data layout is retrieved from the TargetData class (in main) and passed via global.params.dataLayout to the module. Since the gTargetData is also a global variable it makes no sense to pass this information using another global variable.
This commit is contained in:
@@ -566,10 +566,6 @@ int main(int argc, char** argv)
|
||||
|
||||
gTargetData = target->getTargetData();
|
||||
|
||||
// get final data layout
|
||||
std::string datalayout = gTargetData->getStringRepresentation();
|
||||
global.params.dataLayout = datalayout.c_str();
|
||||
|
||||
global.params.llvmArch = theTarget->getName();
|
||||
|
||||
if (strcmp(global.params.llvmArch,"x86")==0) {
|
||||
|
||||
Reference in New Issue
Block a user