search for: defaultdatalayout

Displaying 1 result from an estimated 1 matches for "defaultdatalayout".

2011 Oct 04
1
[LLVMdev] opt and llc use datalayout differently - bug?
...PM.add(new TargetData(&mod)); From opt.cpp: // Add an appropriate TargetData instance for this module. TargetData *TD = 0; const std::string &ModuleDataLayout = M.get()->getDataLayout(); if (!ModuleDataLayout.empty()) TD = new TargetData(ModuleDataLayout); else if (!DefaultDataLayout.empty()) TD = new TargetData(DefaultDataLayout); if (TD) Passes.add(TD);