[clang] [llvm] [MC] Remove Darwin SDK/Version from ObjFileInfo (PR #103025)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 13 09:59:13 PDT 2024


================
@@ -559,6 +559,9 @@ int main(int argc, char **argv) {
         std::unique_ptr<MCCodeEmitter>(CE), *STI));
     if (NoExecStack)
       Str->initSections(true, *STI);
+    if (TheTriple.isOSBinFormatMachO() && TheTriple.isOSDarwin())
----------------
MaskRay wrote:

Is this needed? It seems that `emitVersionForTarget` will ignore a major version of 0.

https://github.com/llvm/llvm-project/pull/103025


More information about the cfe-commits mailing list