I'm looking for a function in Clang/LLVM which can get me the actual
name of a library from its file. For example, if I have a file called
"libtest.so.1.0.1", I'd like to get "test". You can think of it as the
name of the library required for passing to a linker.