This doesn't practically affect the code generation.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/test/Driver/pic.c | ||
---|---|---|
322 | perhaps change windows-pic.cpp instead |
clang/test/Driver/pic.c | ||
---|---|---|
322 | That file actually doesn't test the thing that this patch touches (if I remove the existing cases for x86_64 in the modified functions, that test still passes but this one breaks), so I thought this one is a better fit, wrt what the test actually tests. |
I was thinking of when testing "windows" x "pic", whether the test should reside in "windows" or "pic".
If in "windows", we can decrease the number of RUN lines and use one RUN line to test multiple properties at one time.
If in "pic", it does make it clear what platforms default to pic but I think many platforms have dedicated tests and duplicate the coverage here anyway.
True, but then again, this avoids needing to duplicate the PIC level checks across two files. It costs a couple more RUN lines, true...
Anyway, I'm not strongly opposed to restructuring it, but feel free to pick that up as a followup if you want to - I'd rather keep this one as-is.
perhaps change windows-pic.cpp instead