mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
Fix comments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127984 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ddfa02ba24
commit
35ee1c921c
@ -2726,7 +2726,7 @@ static Function *FindCXAAtExit(Module &M) {
|
|||||||
static bool cxxDtorIsEmpty(const Function &Fn,
|
static bool cxxDtorIsEmpty(const Function &Fn,
|
||||||
SmallPtrSet<const Function *, 8> &CalledFunctions) {
|
SmallPtrSet<const Function *, 8> &CalledFunctions) {
|
||||||
// FIXME: We could eliminate C++ destructors if they're readonly/readnone and
|
// FIXME: We could eliminate C++ destructors if they're readonly/readnone and
|
||||||
// unwind, but that doesn't seem worth doing.
|
// nounwind, but that doesn't seem worth doing.
|
||||||
if (Fn.isDeclaration())
|
if (Fn.isDeclaration())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@ -2768,7 +2768,7 @@ bool GlobalOpt::OptimizeEmptyGlobalCXXDtors(Function *CXAAtExitFn) {
|
|||||||
/// This registration, e.g. __cxa_atexit(f,p,d), is intended to cause the
|
/// This registration, e.g. __cxa_atexit(f,p,d), is intended to cause the
|
||||||
/// call f(p) when DSO d is unloaded, before all such termination calls
|
/// call f(p) when DSO d is unloaded, before all such termination calls
|
||||||
/// registered before this one. It returns zero if registration is
|
/// registered before this one. It returns zero if registration is
|
||||||
/// successful, nonzero on failure.
|
/// successful, nonzero on failure.
|
||||||
|
|
||||||
// This pass will look for calls to __cxa_atexit where the function is trivial
|
// This pass will look for calls to __cxa_atexit where the function is trivial
|
||||||
// and remove them.
|
// and remove them.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user