The #pragma clang section can be used at a coarse granularity to specify
the section used for bss/data/text/rodata for global objects. When split
functions is enabled, the function may be split into two parts violating
user expectations.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
llvm/lib/CodeGen/MachineFunctionSplitter.cpp | ||
---|---|---|
104–105 | nit: Can you use hasSection() here to be more consistent with TargetLoweringObjectFile.cpp? |
llvm/lib/CodeGen/MachineFunctionSplitter.cpp | ||
---|---|---|
104–105 | Looks like this is not consistent even though the documentation suggests that they should be equivalent, so I'll revert it for now. |
nit: Can you use hasSection() here to be more consistent with TargetLoweringObjectFile.cpp?