search for: othertest0a

Displaying 2 results from an estimated 2 matches for "othertest0a".

2016 Aug 24
2
Change GlobalValue Type/Initializer
...update the initializer of a global value and I have encounter two issues: The first one is that I can not change the type of the global value. Let say that I have the following variable: @.str = private unnamed_addr constant [6 x i8] c”Test0A\00", align 1 How can I change the ”Test0A\00” to ”OtherTest0A\00”. Is this possible? I know that you can change the initializer with setInitializer but the global value’s type will not be the same. For now, the only way I found was to create a new global value and to change all theses uses. The second problem that I have is with the function Verifier::visit...
2016 Aug 24
2
Change GlobalValue Type/Initializer
...alue and I have encounter two issues: >> >> The first one is that I can not change the type of the global value. Let say that I have the following variable: @.str = private unnamed_addr constant [6 x i8] c”Test0A\00", align 1 >> >> How can I change the ”Test0A\00” to ”OtherTest0A\00”. Is this possible? I know that you can change the initializer with setInitializer but the global value’s type will not be the same. >> For now, the only way I found was to create a new global value and to change all theses uses. > > That’s the right thing to do: you need to create...