Re: [llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp Globals.cpp Module.cpp Verifier.cpp

2007-04-29 Thread Anton Korobeynikov
Hello, Chris. > Ok, but the call can be used to dig the global out from under the > constantexprs etc. Yes. Commited. > I must be missing something: isn't it *always* safe to RAUW uses of > an alias with uses of its aliasee? No, that's me missing some bits :) It's always safe to do RAUW of an

Re: [llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp Globals.cpp Module.cpp Verifier.cpp

2007-04-29 Thread Chris Lattner
On Apr 29, 2007, at 3:38 AM, Anton Korobeynikov wrote: > Chris, > >> This can use the new getAliaseeGlobal() method. > Not here. We should distinguish, whether we have variable, function ot > bitcast here and print them differently. Ok, but the call can be used to dig the global out from under t

[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp Globals.cpp Verifier.cpp

2007-04-29 Thread Anton Korobeynikov
Changes in directory llvm/lib/VMCore: AsmWriter.cpp updated: 1.277 -> 1.278 Globals.cpp updated: 1.21 -> 1.22 Verifier.cpp updated: 1.208 -> 1.209 --- Log message: Implement review feedback --- Diffs of the changes: (+30 -9) AsmWriter.cpp |3 +-- Globals.cpp | 33 ++

Re: [llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp Globals.cpp Module.cpp Verifier.cpp

2007-04-29 Thread Anton Korobeynikov
Chris, > This can use the new getAliaseeGlobal() method. Not here. We should distinguish, whether we have variable, function ot bitcast here and print them differently. > What does it mean for an alias to be a declaration? I'd be fine with > them always returning true or false. What code call

Re: [llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp Globals.cpp Module.cpp Verifier.cpp

2007-04-28 Thread Chris Lattner
> +++ llvm/lib/VMCore/AsmWriter.cpp Sat Apr 28 08:44:59 2007 > @@ -926,7 +926,7 @@ > assert(0 && "Invalid alias linkage"); >} > > - const GlobalValue *Aliasee = GA->getAliasee(); > + const Constant *Aliasee = dyn_cast_or_null(GA- > >getAliasee()); >assert(Aliasee && "Aliasee cann

[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp Globals.cpp Module.cpp Verifier.cpp

2007-04-28 Thread Anton Korobeynikov
Changes in directory llvm/lib/VMCore: AsmWriter.cpp updated: 1.276 -> 1.277 Globals.cpp updated: 1.20 -> 1.21 Module.cpp updated: 1.81 -> 1.82 Verifier.cpp updated: 1.206 -> 1.207 --- Log message: Implement review feedback. Aliasees can be either GlobalValue's or bitcasts of them. --- Diffs

Re: [llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp Globals.cpp Module.cpp Verifier.cpp

2007-04-25 Thread Chris Lattner
On Apr 25, 2007, at 7:28 AM, Anton Korobeynikov wrote: > +void GlobalAlias::setAliasee(const GlobalValue *GV) > +{ > + // FIXME: Some checks? > + Aliasee = GV; > +} > + This should assert that GV type matches the alias type. > @@ -277,7 +282,9 @@ >Assert1(!GV.isDeclaration() || >

[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp Globals.cpp Module.cpp Verifier.cpp

2007-04-25 Thread Anton Korobeynikov
Changes in directory llvm/lib/VMCore: AsmWriter.cpp updated: 1.274 -> 1.275 Globals.cpp updated: 1.19 -> 1.20 Module.cpp updated: 1.80 -> 1.81 Verifier.cpp updated: 1.205 -> 1.206 --- Log message: Implement aliases. This fixes PR1017: http://llvm.org/PR1017 and it's dependent bugs. CFE part

[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp Globals.cpp

2007-04-12 Thread Lauro Ramos Venancio
Changes in directory llvm/lib/VMCore: AsmWriter.cpp updated: 1.268 -> 1.269 Globals.cpp updated: 1.18 -> 1.19 --- Log message: Implement the "thread_local" keyword. --- Diffs of the changes: (+8 -7) AsmWriter.cpp |3 ++- Globals.cpp | 12 ++-- 2 files changed, 8 insertions(