[PATCH] D62350: [wip] ELF: Create synthetic sections for loadable partitions.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 27 04:03:34 PDT 2019


grimar added inline comments.


================
Comment at: lld/ELF/SyntheticSections.h:1127
+
+inline Partition &mainPartition() { return Partitions[0]; }
+
----------------
What about having one more global pointer instead.
i.e. after creating all of the partitions do:

```
Partition *InM; //global, like `In`

...

InM = &Partitions[0];
```

And then use `InM` everywhere instead of `mainPartition`.
I wonder what others think though.



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62350/new/

https://reviews.llvm.org/D62350





More information about the llvm-commits mailing list