
Recently in some of our internal testing, we noticed that the compiler was sometimes generating an empty linker.options section which seems unnecessary. This proposed change causes the compiler to simply omit emitting the linker.options section if it is empty.
7 lines
344 B
C
7 lines
344 B
C
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -fmodule-name=Clib %s -I %S/Inputs/module-impl-with-link -emit-llvm -o - | FileCheck %s
|
|
#include "foo.h"
|
|
// Make sure we don't generate linker option for module Clib since this TU is
|
|
// an implementation of Clib.
|
|
// CHECK-NOT: !llvm.linker.options =
|