Timmmm
Timmmm

Reputation: 96625

Equivalent of --keep-locals for LLVM

Is there any way to keep local assembly symbols using the Clang/LLVM assembler. The GNU one supports a --keep-locals (or -L) flag, but the LLVM one does not seem to have this option.

Upvotes: 1

Views: 165

Answers (1)

user743382
user743382

Reputation:

clang may not support the --keep-locals long option, but does accept the -L short option. Remember that all assembler options must be prefixed with -Wa,, so the complete option becomes -Wa,-L.

If you are invoking the assembler directly (clang -cc1as), then the option is called -msave-temp-labels.

Upvotes: 2

Related Questions