ARC: Enforce function alignment at code emission time
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 18 Jun 2020 13:37:33 +0000 (09:37 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 18 Jun 2020 21:40:49 +0000 (17:40 -0400)
commitbbd78519f9a15669580563b93a3ab5d4cad1febc
tree7d6175fa7caf13491ccb0d566e2ef8b87fc840ca
parent95605b784b350b9c51fd4f15f312b50566cab30d
ARC: Enforce function alignment at code emission time

Don't do this in the MachineFunctionInfo constructor. Also, ensure the
alignment rather than overwriting it outright. I vaguely remember
there was another place to enforce the target minimum alignment, but I
couldn't find it (it's there for instructions).
llvm/lib/Target/ARC/ARCAsmPrinter.cpp
llvm/lib/Target/ARC/ARCMachineFunctionInfo.h