Differential Revision: https://reviews.llvm.org/D24363
llvm-svn: 280990
#include "llvm/CodeGen/Analysis.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
+#include "llvm/Support/Path.h"
#include "llvm/Support/raw_ostream.h"
using namespace llvm;
}
this->initStringTable();
- SoName = this->getName();
+ SoName = sys::path::filename(this->getName());
if (!DynamicSec)
return;
# CHECK-NEXT: Other: 0
# CHECK-NEXT: Section: Undefined
-# CHECK: NEEDED SharedLibrary ({{.*}}2.so)
+# CHECK: NEEDED SharedLibrary (as-needed-no-reloc{{.*}}2.so)
.globl _start
_start:
// CHECK-NEXT: EntrySize: 8
// CHECK-NEXT: SectionData (
// CHECK: )
-// CHECK-NEXT: }
// CHECK: Name: .symtab
// CHECK-NEXT: Type: SHT_SYMTAB